Package: qlcMatrix 0.9.8

Michael Cysouw

qlcMatrix: Utility Sparse Matrix Functions for Quantitative Language Comparison

Extension of the functionality of the 'Matrix' package for using sparse matrices. Some of the functions are very general, while other are highly specific for special data format as used for quantitative language comparison.

Authors:Michael Cysouw [aut, cre]

qlcMatrix_0.9.8.tar.gz
qlcMatrix_0.9.8.zip(r-4.5)qlcMatrix_0.9.8.zip(r-4.4)qlcMatrix_0.9.8.zip(r-4.3)
qlcMatrix_0.9.8.tgz(r-4.4-any)qlcMatrix_0.9.8.tgz(r-4.3-any)
qlcMatrix_0.9.8.tar.gz(r-4.5-noble)qlcMatrix_0.9.8.tar.gz(r-4.4-noble)
qlcMatrix_0.9.8.tgz(r-4.4-emscripten)qlcMatrix_0.9.8.tgz(r-4.3-emscripten)
qlcMatrix.pdf |qlcMatrix.html
qlcMatrix/json (API)
NEWS

# Install 'qlcMatrix' in R:
install.packages('qlcMatrix', repos = c('https://rickhelmus.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/cysouw/qlcmatrix/issues

Datasets:
  • bibles - A selection of bible-texts
  • huber - Comparative vocabulary for indigenous languages of Colombia
  • wals - The World Atlas of Language Structures

On CRAN:

7.04 score 7 stars 1 packages 260 scripts 1.3k downloads 1 mentions 50 exports 5 dependencies

Last updated 7 months agofrom:d49da5a5a8. Checks:1 OK, 2 WARNING, 4 NOTE. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKJan 16 2025
R-4.5-winWARNINGJan 16 2025
R-4.5-linuxWARNINGJan 16 2025
R-4.4-winNOTEJan 16 2025
R-4.4-macNOTEJan 16 2025
R-4.3-winNOTEJan 16 2025
R-4.3-macNOTEJan 16 2025

Exports:Arrayas.MatrixassocColassocRowassocSparsecolMaxcolMincorSparsecosColcosMissingcosRowcosSparsedimReddistSparseidfisqrtjcrossprodjMatrixnonenorm1norm2normLpmipoipwMatrixread.textresrKhatriRaorowMaxrowMinrSparseMatrixsim.attsim.consim.graphsim.langsim.obssim.stringssim.wordssparseArraysplitStringssplitTablesplitTextsplitWordlisttenmattjcrossprodttMatrixunfoldunfold_to_matrixunfoldBlockMatrixwpmi

Dependencies:docoptlatticeMatrixslamsparsesvd

Transforming data into sparse matrices

Rendered fromtransformingDataSparse.Rmdusingknitr::rmarkdownon Jan 16 2025.

Last update: 2024-07-03
Started: 2015-04-27

Readme and manuals

Help Manual

Help pageTopics
Utility sparse matrix functions for Quantitative Language Comparison (QLC)qlcMatrix-package qlcMatrix
Sparse Arrays ("Tensors")Array as.Matrix sparseArray
Association between columns (sparse matrices)assocSparse pmi poi res wpmi
A selection of bible-textsbibles
Pearson correlation between columns (sparse matrices)corSparse
Associations-measures for sparsely encoded nominal variablesassocCol assocNominal assocRow cosCol cosNominal cosRow
Cosine similarity between columns (sparse matrices)cosMissing cosSparse idf isqrt none norm1 norm2 normL
Dimensionality Reduction for sparse matrices, based on Cholesky decompositiondimRed
Sparse distance matrix calculationsdistSparse
Comparative vocabulary for indigenous languages of Colombia (Huber & Reed 1992)huber
Harmonize (`join') sparse matricesjcrossprod jMatrix tjcrossprod
Construct `part-whole' (pw) Matrices from tokenized stringspwMatrix
`reduced' Khatri-Rao product (sparse matrices)rKhatriRao
Row and column extremes (sparse matrices)colMax colMin rowMax rowMin
Construct a random sparse matrixrSparseMatrix
Similarity-measures for nominal variablessim.att sim.nominal sim.obs
String similarity using ngram vectorssim.strings
Similarity matrices from wordlistssim.con sim.graph sim.lang sim.wordlist
Similarity-measures for words between two languages, based on co-occurrences in parallel textsim.words
Construct ngram matrices from a vector of stringssplitStrings
Construct sparse matrices from a nominal matrix/dataframesplitTable
Construct sparse matrices from parallel textsread.text splitText
Construct sparse matrices from comparative wordlists (aka `Swadesh list')splitWordlist
Construct a `type-token' (tt) Matrix from a vectorttMatrix
Unfolding of Arraystenmat unfold unfold_to_matrix
Unfolding of block matrices (sparse matrices)unfoldBlockMatrix
The World Atlas of Language Structures (WALS)wals