Skip to contents

Margalef Richness Index

Usage

index_margalef(x, ...)

# S4 method for class 'numeric'
index_margalef(x, na.rm = FALSE, ...)

Arguments

x

A numeric vector of count data (absolute frequencies).

...

Currently not used.

na.rm

A numeric scalar: should missing values (including NaN) be removed?

Value

A numeric vector.

References

Margalef, R. (1958). Information Theory in Ecology. General Systems, 3, 36-71.

Author

N. Frerebeau