bioDist (version 1.44.0)

man: 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.

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.

Details

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

See Also

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

Examples

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

Run the code above in your browser using DataCamp Workspace