spearman.dist | R Documentation |
Calculate pairwise Spearman correlational distances, i.e. 1-SPEAR or
1-|SPEAR|, for all rows of a matrix and return a dist
object.
spearman.dist(x, ...)
x |
n by p matrix or ExpressionSet; if x is an ExpressionSet, then the function uses its 'exprs' slot. |
... |
arguments passed to
|
We call cor
with the appropriate arguments to compute the row-wise correlations.
One minus the Spearman correlation, between rows of x
, are returned, as
an instance of the dist
class.
Beiying Ding
cor.dist
, tau.dist
, euc
,
man
, KLdist.matrix
, KLD.matrix
,
mutualInfo
, dist
x <- matrix(rnorm(200), nrow = 5)
spearman.dist(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.