inst/examples/ex-diversity.R

## Data from Conkey 1980, Kintigh 1989
data("cantabria")

## Shannon diversity index
(h <- heterogeneity(cantabria, method = "shannon"))
(e <- evenness(cantabria, method = "shannon"))

plot(h)
as.data.frame(h)

Try the tabula package in your browser

Any scripts or data that you put into this service are public.

tabula documentation built on Sept. 11, 2024, 6:40 p.m.