cor.dist {bioDist}R Documentation

Pearson correlational distance

Description

Calculate pairwise Pearson correlational distances, i.e. 1-COR or 1-|COR|, for all columns of a matrix and save as a 'dist' object

Usage

cor.dist(x, abs = TRUE, diag = FALSE, upper = FALSE)

Arguments

x n by p matrix
abs if TRUE, then 1-|COR| else 1-COR
diag if TRUE, diagonal of the distance matrix will be displayed
upper if TRUE, upper triangle of the distance matrix will be displayed

Details

Value

Pairwise Pearson correlational distance object

Author(s)

Beiying Ding

See Also

spearman.dist, tau.dist,euc,man,KLdist.matrix,KLD.matrix,mutualInfo

Examples

 x <- matrix(rnorm(200), nrow=5)
 cor.dist(x)

[Package bioDist version 1.0.0 Index]