Description Usage Arguments Source

Find the Pearson correlation of a sparse matrix.
For large sparse matrix this is more efficient in time and memory than
`cor(as.matrix(x))`

. Note that it does not currently work on
simple_triplet_matrix objects.

1 | ```
cor_sparse(x)
``` |

`x` |
A matrix, potentially a sparse matrix such as a "dgTMatrix" object |

This code comes from mike on this Stack Overflow answer: http://stackoverflow.com/a/9626089/712603.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.