diversity: Diversity Index

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/diversities.R

Description

Various community diversity indices.

Usage

1
diversity(x, index = "all", zeroes = TRUE)

Arguments

x

A species abundance vector, or matrix (taxa/features x samples) with the absolute count data (no relative abundances), or phyloseq-class object

index

Diversity index. See details for options.

zeroes

Include zero counts in the diversity estimation.

Details

By default, returns all diversity indices. The available diversity indices include the following:

Value

A vector of diversity indices

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

Beisel J-N. et al. A Comparative Analysis of Diversity Index Sensitivity. Internal Rev. Hydrobiol. 88(1):3-15, 2003. URL: https://portais.ufg.br/up/202/o/2003-comparative_evennes_index.pdf

Bulla L. An index of diversity and its associated diversity measure. Oikos 70:167–171, 1994

Magurran AE, McGill BJ, eds (2011) Biological Diversity: Frontiers in Measurement and Assessment (Oxford Univ Press, Oxford), Vol 12.

Smith B and Wilson JB. A Consumer's Guide to Diversity Indices. Oikos 76(1):70-82, 1996.

See Also

dominance, richness, evenness, rarity, alpha

Examples

1
2
data(dietswap)
d <- alpha(dietswap, 'shannon')

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.