Learn R Programming

Signac (version 1.14.0)

corSparse: Sparse matrix correlation

Description

Compute the Pearson correlation matrix between columns of two sparse matrices.

Usage

corSparse(X, Y = NULL, cov = FALSE)

Arguments

X

A matrix

Y

A matrix

cov

return covariance matrix

Author

Michael Cysouw, Karsten Looschen

Details

Originally from https://stackoverflow.com/questions/5888287/running-cor-or-any-variant-over-a-sparse-matrix-in-r and the qlcMatrix package.