const: Constancy of species in a community dataset
Description
Calculates constancy of species in a community data (site x species matrix) with respect to categorical treatments (e.g. cluster analysis classes). Constancy of a species to a treatment is the proportion of times the species occurs at sites within the treatment.
Usage
const(Y, cat, digits = 4)
Arguments
Y
An n x p community site x species matrix.
cat
An n x 1 vector of categorical assignments.
digits
Number of significant digits in output.
Value
Output is a p x r matrix where r is the number of categorical levels in cat.