fidelity {asbio} | R Documentation |
The function fidelity
calcuates the proportion of experimental units (sites) in a group a species occurs in, compared to the total number of sites the species occurs in across all groups.
fidelity(Y, cat, digits = 4)
Y |
An n x p community matrix. |
cat |
An n x 1 vector of categorical assignments. |
digits |
The number of significant digits in output |
Returns a p x r matrix of species fidelities (where r is the number of categorcal assignments, e.g. factor levels.)
Ken Aho
library(vegan) data(dune) data(dune.env) fidelity(dune,dune.env[,3])