Learn R Programming

labdsv (version 1.8-0)

importance: Importance Table

Description

For a classified set of vegetation samples, a importance table lists for each species the average or typical abundance of each species in each class.

Usage

importance(taxa,clustering,minval=0,digits=2,show=minval,
       sort=FALSE,typical=TRUE,spcord)

Arguments

taxa

a data.frame of species abundances with samples as rows and species as columns

clustering

a vector of (integer) class memberships, or an object of class ‘clustering’, class ‘partana’, of class partition

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

show

the minimum value a species must have to print a value

sort

a switch to control interactive re-ordering

typical

a swith to control how mean abundance is calculated. Typical=TRUE divides the sum of species abundance by the number of plots in which it occurs; typical=FALSE divides by the number of plots in the type

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/labs/lab3/lab3.html

See Also

const, vegtab, concov

Examples

Run this code
# NOT RUN {
    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