Shannon.character | R Documentation |
Calculates the Shannon entropy of a vector of individuals.
## S3 method for class 'character'
Shannon(NorP, Correction = "Best", ..., CheckArguments = TRUE)
NorP |
A vector of characters. |
Correction |
A string containing one of the possible corrections: see Shannon. |
... |
Further arguments passed to entropart::Tsallis, entropart::Diversity, entropart::Richness, entropart::Shannon or entropart::Simpson (S3 methods for class 'AbdVector' or 'numeric') |
CheckArguments |
If |
A named number equal to the calculated entropy. The name is that of the bias correction used.
SpeciesList <- as.character(Paracou6$marks$PointType)
Shannon(SpeciesList)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.