Learn R Programming

entropart (version 1.1.3)

Richness: Simpson entropy of a community

Description

Calculates the richness of a community (described by a vector of abundances or probabilities).

Usage

Richness(Ns, CheckArguments = TRUE)

Arguments

Ns
A numeric vector. Contains either abundances or probabilities.
CheckArguments
Logical; if TRUE, the function arguments are verified. Should be set to FALSE to save time when the arguments have been checked elsewhere.

Value

  • A number equal to the calculated entropy.

Details

Richness simply returns the number of strictly positive elements of the vector.

See Also

Tsallis

Examples

Run this code
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest)
  data(Paracou618)
  # Richness of the first community of Paracou618.MC
  Richness(Paracou618.MC$Psi[, 1])

Run the code above in your browser using DataLab