const {asbio}R Documentation

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.

Author(s)

Ken Aho

See Also

fidelity, veg.table

Examples

library(vegan)
data(dune)
data(dune.env)
const(dune,dune.env[,3])

[Package asbio version 0.1 Index]