Calculates the Shannon entropy of a vector of individuals.
# S3 method for factor
Shannon(NorP, Correction = "Best", ..., CheckArguments = TRUE)
A vector of factors.
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')
If TRUE
(default), the function arguments are verified.
Should be set to FALSE
to save time in simulations for example, when the arguments have been checked elsewhere.
A named number equal to the calculated entropy. The name is that of the bias correction used.
Shannon(Paracou6$marks$PointType)
#> UnveilJ
#> 4.702037