Description Usage Arguments Value See Also
Two simple hepler functions that convert a matrix of correlations to a distance/dissimilarity matrix
1 2 3 | cor2dist(x)
cor2dist_abs(x)
|
x |
A square matrix of correlations |
An object of class dist
: cor2dist
returns 1-r,
cor2dist2
returns 1-|r|.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.