bray_curtis: Bray-Curtis Dissimilarity

Description Usage Arguments Value Note Examples

View source: R/bc.R

Description

Bray-Curtis Dissimilarity

Usage

1
bray_curtis(n1, n2)

Arguments

n1

abundances of species at site 1

n2

abundances of species at site 2

Value

Bray-Curtis dissimilarity (0..1, 0 = equal, 1 = different)

Note

species in n1 and n2 need to be aligned

Examples

1
2
3
     n1 <- c(11,  0, 7,  8, 0)
     n2 <- c(24, 37, 5, 18, 1)
     bray_curtis(n1, n2)

benthos documentation built on May 2, 2019, 12:37 p.m.