Learn R Programming

labdsv (version 1.2-0)

importance: Importance Table

Description

For a classified set of vegetation samples, a importance table lists for a each species the average abundance (ignoring zeros) of each species in each class.

Usage

importance(taxa,clustering,minval,digits,spcord)

Arguments

taxa
a data.frame of species abundances with samples as rows and species as columns
clustering
a vector of (integer) class memberships
minval
the minimum importance a species must have in at least one class to be included in the output
digits
the number of digits to report in the table
spcord
a vector of integers to specify the order in which species should be listed in the table

Value

  • a data.frame with species as rows, classes as columns, with average abundance of species in classes.

References

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

See Also

const, vegtab

Examples

Run this code
data(bryceveg) # returns a data.frame called bryceveg
    class <- sample(1:10,nrow(bryceveg),replace=TRUE)
    importance(bryceveg,class,minval=0.25)

Run the code above in your browser using DataLab