cor.dist: Pearson correlational distance

cor.distR Documentation

Pearson correlational distance

Description

Calculate pairwise Pearson correlational distances, i.e. 1-COR or 1-|COR|, and saves 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:

  • absif TRUE, then 1-|COR| else 1-COR, default is TRUE.

  • diagif TRUE, then the diagonal of the distance matrix will be displayed, default is FALSE.

  • upperif TRUE, then the upper triangle of the distance matrix will be displayed, default is FALSE.

  • samplefor objects of classes that extend eSet: if TRUE, then distances are computed between samples(columns) , otherwise, they are computed between features(rows).

Details

The cor function is used to compute the pairwise distances between rows of an input matrix, except if the input is an object of a class that extends eSet and sample is TRUE.

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)

Bioconductor/bioDist documentation built on Nov. 2, 2024, 7:23 a.m.