xydist: Distance or dissimilarity between relative abundance vectors...

Description Usage Arguments

View source: R/math.R

Description

Distance or dissimilarity between relative abundance vectors x and y

Usage

1
xydist(x, y, method = "aitchison", trim = FALSE)

Arguments

method

: distance/dissimilarity measure

trim

: should x and y be reduced to their common positive elements before computing the Aitchison distance (otherwise, the distance will be Inf)

method == "aitchison" -> Aitchison distance method == "bray" -> Bray-Curtis dissimilarity between x and y. Note, converts x and y to proportions before computing.

Bray method is equal to vegan::vegdist(rbind(close_elts(x), close_elts(y)))[1]


mikemc/phyloseqpp documentation built on Nov. 4, 2019, 6:54 p.m.