distance.matrix: Calculate distance matrix between the _columns_ of the input...

Description Usage Arguments Value Author(s) References Examples

View source: R/similarity.R

Description

Calculate distance matrix between the _columns_ of the input matrix. Can prduce correlation-based distance matrices, otherwise uses the standard 'dist' function.

Usage

1
distance.matrix(x, method = "pearson", ...)

Arguments

x

data matrix

method

distance method

...

other arguments to be passed

Value

distance object

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
data(peerj32)
  d <- distance.matrix(peerj32$microbes[1:10, 1:3])

microbiome/microbiomeold documentation built on May 22, 2019, 9:57 p.m.