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).