ec_betadiversity: Compute beta diversity

View source: R/ec_betadiversity.R

ec_betadiversityR Documentation

Compute beta diversity

Description

Compute the beta diversity between all pairs of sites for a specific presence-absence matrix.

Usage

ec_betadiversity(x, methods = "bc")

Arguments

x

a pa object or an R object to a coerced to one (see ec_as_pa()).

methods

a vector of two-letters strings describing the methods te be used. Values should be taken among ra, bc, wi and ja (see details).

Details

Currently ra stands for raw and returns the number of occurrence. Additional values are

  • bc: Bray-Curtis index,

  • wi: Wishart index,

  • ja: Jaccard index.

Value

A matrix with all the combinaisons of sites and the corresponding betadiversity.

References

  • Legendre, P., and De Caceres M.. Beta Diversity as the Variance of Community Data: Dissimilarity Coefficients and Partitioning. Ecology Letters (2013).

  • Koleff, P., Gaston, K. J. & Lennon, J. J. Measuring beta diversity for presence-absence data. Journal of Animal Ecology (2003).

Examples

mat <- ec_generate_pa(20, 10, .4)
ec_betadiversity(mat)


KevCaz/ecoocc documentation built on May 24, 2023, 1:43 p.m.