Learn R Programming

labdsv (version 1.2-0)

duarm: Indicator Species Analysis Minimizing Partial Occurrences

Description

Calculates the degree to which species are either always present or always absent within clusters or types.

Usage

duarm(taxa,clustering,sort=FALSE)

Arguments

taxa
a matrix or dataframe of samples, species as columns, samples as rows
clustering
a vector of numeric cluster memberships for samples, or a classification object returned from pam, or partana
sort
if TRUE, return in order of highest value to lowest rather than input order

Value

  • a dataframe of species indicator values

Details

Calculates the constancy (fractional occurrence of each species in every type), and then calculates twice the the sum of the absolute values of the constancy - 0.5, normalized to the number of clusters (columns).

References

http://ecology.msu.montana.edu/labdsv/R

See Also

duleg

Examples

Run this code
data(bryceveg)
    dis.bc <- dsvdis(bryceveg,'bray/curtis')
    clust <- sample(1:5,nrow(bryceveg),replace=TRUE)
    duarm(bryceveg,clust)

Run the code above in your browser using DataLab