shannon: Computes Shannon's and equitability indices
Description
Computes Shannon's and equitability indices
Usage
shannon(vect, proba=TRUE)
Arguments
vect
a probability vector whose sum = 1 or a frequency vector
proba
FALSE if the vector is frequencies and not probabilities
Value
A vector of two values: Shannon's and equitability indices
Details
Computes Shannon's and equitability indices. The vetor passed can be a probability vector whose sum equal 1 or a vector of frequencies (e.g. the number of food item of each category). In this case the argument proba must be set to FALSE.