bray.diss: Bray-Curtis dissimilarity

Description Usage Arguments Value Examples

View source: R/toolbox.R

Description

Calculates the Bray-Curtis dissimilarity between two samples

Usage

1
bray.diss(x, y)

Arguments

x

a vector containing the first compositional sample

y

a vector of length(x) containing the second compositional sample

Value

a scalar value

Examples

1
2
data(Namib)
print(bray.diss(Namib$HM$x["N1",],Namib$HM$x["N2",]))

Example output

[1] 0.05797101

provenance documentation built on May 29, 2017, 7:46 p.m.