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.


arni-magnusson/arni documentation built on Nov. 3, 2023, 7:35 p.m.