An efficient method of quickly computing the covariance of
a matrix. Like R's own cov()
, this will cast dataframes
as matrices first, which is potentially a very memory expensive
operation.
1 | cov2(x)
|
x |
The input matrix, vector, or dataframe. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.