powered by
Computes Shannon's and equitability indices from a data frame of two columns: column 1, dietary category; column 2, abundance (n, biomass,...)
shannonbio(data1)
A vector of two values: Shannon's and equitability indices
a data frame of two columns: column 1, dietary category; column 2, abundance (n, biomass,...)
shannon, difshannonbio
shannon
difshannonbio
data(preybiom) shannonbio(preybiom[,5:6])
Run the code above in your browser using DataLab