Diversity
calls Tsallis to calculate entropy and transforms it into diversity by calculating its deformed exponential.
# S3 method for character
Diversity(NorP, q = 1, Correction = "Best", ..., CheckArguments = TRUE)
A vector of factors.
A number: the order of entropy. Some corrections allow only a positive number. Default is 1 for Shannon entropy.
A string containing one of the possible corrections: "None"
(no correction), "ChaoShen"
, "GenCov"
, "Grassberger"
, "Holste"
, "Bonachela"
, "ZhangGrabchak"
, or "ChaoWangJost"
, "Marcon"
, "UnveilC"
, "UnveiliC"
, "UnveilJ"
or "Best"
, the default value. Currently, "Best"
is "ChaoWangJost"
.
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 diversity. The name is that of the bias correction used.
SpeciesList <- as.character(Paracou6$marks$PointType)
Diversity(SpeciesList)
#> UnveilJ
#> 110.1714