Learn R Programming

asbio (version 0.2-1)

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.

See Also

fidelity, veg.table

Examples

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

Run the code above in your browser using DataLab