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, ...)

Arguments

x n by p matrix or ExpressionSet; if x is an ExpressionSet, then the function uses its 'exprs' slot.
... arguments passed to cor.dist:
abs
if TRUE, then 1-|COR| else 1-COR, default is TRUE.
diag
if TRUE, then the diagonal of the distance matrix will be displayed, default is FALSE.
upper
if TRUE, then the upper triangle of the distance matrix will be displayed, default is FALSE.
sample
for ExpressionSet methods: if TRUE, then distances are computed between samples, otherwise, they are computed between genes.

Details

The cor function is used to compute the pairwise distances.

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.14.0 Index]