man {bioDist}R Documentation

Manhattan distance

Description

Calculate pairwise Manhattan distances for all rows of a matrix and save as a dist object.

Usage

man(x, diag = FALSE, upper = FALSE)

Arguments

x A matrix.
diag If TRUE, the diagonal of the distance matrix will be displayed
upper If TRUE, the upper triangle of the distance matrix will be displayed

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.

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)

[Package bioDist version 1.0.0 Index]