Distance or dissimilarity between relative abundance vectors x and y

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.