shannon: Shannon Index

View source: R/shannon.R

shannonR Documentation

Shannon Index

Description

Calculate Shannon index of species diversity.

Usage

shannon(x, bounded = TRUE)

Arguments

x

a frequency vector, one value per species.

bounded

whether to bound the index between 0 and 1.

Value

Species diversity as a number.

See Also

yule.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.