cor.dist | R Documentation |
Additional distance functions Correlation distance (1-r)
cor.dist(data, methods = "pearson", absolute = FALSE)
data |
a data matrix ([data.frame object] row: metabolites, col: samples or replicates) |
methods |
a character string indicating which correlation coefficient is to be calculated. One of "pearson" (default), "spearman", or "kendall" can be abbreviated. |
absolute |
TRUE means that absolute value of the correlation coefficient is used (Default: FALSE). |
These functions were originally from 'hybridHclust' package. We modified the functions slightly. See also the reference manual in detail.
the resulting correlation matrix
Atsushi Fukushima
cor.dist(as.matrix(t(iris[,1:4])))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.