Description Usage Arguments Details Value Author(s) See Also Examples
Calculate several distances and dissimilarities with optional grouping, by default columnwise and pairwise, or from an optionally specified common point.
1 2 3 4 5 6 7 8 9 | distx(x, ...)
## S3 method for class 'matrix'
distx(x, method=c("euclidean", "bray-curtis", "jaccard", "mahalanobis",
"sorensen", "difference", "maximum", "manhattan", "canberra", "binary", "minkowski"),
groups=NULL, p=NULL, ..., bycol=TRUE)
## S3 method for class 'biom'
distx(x, method="euclidean", groups=NULL, ..., bycol=TRUE)
|
x |
a matrix-like object ( |
method |
name of distance or dissimilarity measure ( |
groups |
a grouping of columns/rows ( |
p |
a single column/row ( |
... |
unused |
bycol |
compute columnwise rather than rowwise? ( |
Complete technical documentation is forthcoming. For the current preliminary release, please refer to the examples provided.
Complete technical documentation is forthcoming. For the current preliminary release, please refer to the examples provided.
Daniel T. Braithwaite and Kevin P. Keegan
stats::dist
,
ecodist::distance
1 2 3 4 5 6 7 8 9 10 11 | #### Euclidean distance between samples based on raw counts
distx (xx1)
#### alternate dissimilarity measure
distx (xx1, method="bray-curtis")
#### distance in log-transformed data
distx (transform (xx2, t_Log))
#### mean pairwise distance between biomes
distx (xx3, groups="$$biome", method="bray-curtis")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.