man: Manhattan distance

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Calculate pairwise Manhattan distances and saves as a dist object.

Usage

1
man(x, ...)

Arguments

x

n by p matrix or an object of class that extends eSet. If x is an object of class that extends eSet, (eg ExpressionSet) then the function uses its 'exprs' slot.

...

arguments passed to man:

  • 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.

Details

This is just an interface to dist with the right parameters set.

Value

An instance of the dist class with the pairwise Manhattan distances between the rows of x in case of a matrix or between the features (rows) in case of a class that extends eSet.

Author(s)

Beiying Ding

See Also

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

Examples

1
2
 x <- matrix(rnorm(200), nrow = 5)
 man(x)

bioDist documentation built on Nov. 8, 2020, 5:14 p.m.