Learn R Programming

⚠️There's a newer version (0.9.8) of this package.Take me there.

qlcMatrix

Utility sparse matrix functions for Quantitative Language Comparison (QLC)

This R-package contains various functions that extend 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.

The package is available at CRAN, so normally you should just install from within R using:

install.packages("qlcMatrix")  
library(qlcMatrix)  

The version here at Github is normally slightly ahead of the CRAN version, and you can install the most up-to-date version using:

install.packages("devtools")
devtools::install_github("cysouw/qlcMatrix")

Michael Cysouw cysouw@mac.com

Copy Link

Version

Install

install.packages('qlcMatrix')

Monthly Downloads

2,215

Version

0.9.7

License

GPL-3

Maintainer

Last Published

April 20th, 2018

Functions in qlcMatrix (0.9.7)

pwMatrix

Construct `part-whole' (pw) Matrices from tokenized strings
splitStrings

Construct unigram and bigram matrices from a vector of strings
qlcMatrix-package

Utility sparse matrix functions for Quantitative Language Comparison (QLC)
WALS

The World Atlas of Language Structures (WALS)
bibles

A selection of bible-texts
corSparse

Pearson correlation between columns (sparse matrices)
rKhatriRao

`reduced' Khatri-Rao product (sparse matrices)
rSparseMatrix

Construct a random sparse matrix
Array

Sparse Arrays ("Tensors")
assocSparse

Association between columns (sparse matrices)
sim.strings

String similarity by cosine similarity between bigram vectors
splitWordlist

Construct sparse matrices from comparative wordlists (aka `Swadesh list')
ttMatrix

Construct a `type-token' (tt) Matrix from a vector
unfold

Unfolding of Arrays
unfoldBlockMatrix

Unfolding of block matrices (sparse matrices)
sim.wordlist

Similarity matrices from wordlists
rowMax

Row and column extremes (sparse matrices)
jMatrix

Harmonize (`join') sparse matrices
huber

Comparative vocabulary for indigenous languages of Colombia (Huber & Reed 1992)
splitText

Construct sparse matrices from parallel texts
splitTable

Construct sparse matrices from a nominal matrix/dataframe
sim.nominal

Similarity-measures for nominal variables
dimRed

Dimensionality Reduction for sparse matrices, based on Cholesky decomposition
cosSparse

Cosine similarity between columns (sparse matrices)
sim.words

Similarity-measures for words between two languages, based on co-occurrences in parallel text
cosNominal

Associations-measures for sparsely encoded nominal variables
distSparse

Sparse distance matrix calculations