alpha_diversity: Compute alpha diversity metrics Note that the Simpson index...

Description Usage Arguments Value

Description

Compute alpha diversity metrics

Note that the Simpson index here is the probability that two individuals randomly drawn will be of the same taxon, and thus gets larger as diveristy *decreases*.

Usage

1
2
3
4
5
richness(x)

simpson(x, proportion = TRUE)

shannon(x)

Arguments

x

A matrix with rows as sites and species as columns. Values are abundances or presence/absence

proportion

Logical. If true, abundances in x are considered proportional abundances. If false, x will be transformed to proportional abundance

Value

A vector of diversity values


mtalluto/mbmtools documentation built on Aug. 13, 2019, 9:44 a.m.