cor.dist {DiffCorr} | R Documentation |
Additional distance functions correlation distance (1-r)
Description
Additional distance functions Correlation distance (1-r)
Usage
cor.dist(data, methods = "pearson", absolute = FALSE)
Arguments
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). |
Details
These functions were originally from 'hybridHclust' package. We modified the functions slightly. See also the reference manual in detail.
Value
the resulting correlation matrix
Author(s)
Atsushi Fukushima
Examples
cor.dist(as.matrix(t(iris[,1:4])))
[Package DiffCorr version 0.4.3 Index]