const {asbio} | R Documentation |
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.
const(Y, cat, digits = 4)
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. |
Output is a p x r matrix where r is the number of categorical levels in cat
.
Ken Aho
library(vegan) data(dune) data(dune.env) const(dune,dune.env[,3])