View source: R/sub_functions.R
corSparse | R Documentation |
Pearson correlation matrix between columns of X, Y modification the code from: http://stackoverflow.com/questions/5888287/running-cor-or-any-variant- over-a-sparse-matrix-in-r https://github.com/cysouw/qlcMatrix/blob/master/R/assoc.R
corSparse(X, Y)
X |
matrix |
Y |
matrix or vector |
correlation cofficient
Note that results larger than 1e4 x 1e4 will become very slow, because the resulting matrix is not sparse anymore.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.