man: Manhattan distance

manR Documentation

Manhattan distance

Description

Calculate pairwise Manhattan distances and saves as a dist object.

Usage

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

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

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