shannon | R Documentation |
Calculate Shannon diversity of a vector
shannon(x, base = exp(1), standardize = TRUE)
x |
Vector of counts or proportions |
base |
Base of logarithm |
standardize |
If TRUE divide x by sum x |
Shannon diversity
shannon(1:10) shannon(1:10,base=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.