shannon: Shannon diversity index

View source: R/shannon.R

shannonR Documentation

Shannon diversity index

Description

Computes Shannon's diversity index

Usage

shannon(x)

Arguments

x

Vector of dimension S (number of species) with the number of individuals observed in each species, or the distribution frequencies of species. NA values are allowed.

Value

Shannon's diversity index (Entropy).

References

Arnaud Barat, Andreu Sansó, Maite Arilla-Osuna, Ruth Blasco, Iñaki Pérez-Fernández, Gabriel Cifuentes-Alcobenda, Rubén Llorente, Daniel Vivar-Ríos, Ella Assaf, Ran Barkai, Avi Gopher, & Jordi Rosell-Ardèvol (2026) <doi:10.1007/s10816-026-09802-3>.

See Also

dec_shannon, equitability

Examples

data(Qesem_s)
shannon(Qesem_s$HU)


diversityArch documentation built on June 13, 2026, 5:07 p.m.