Learn R Programming

labdsv (version 1.8-0)

vegtab: Vegetation Table

Description

Produces an ordered table of abundance of species in samples, sub-sampled by (an optional) classification of the samples

Usage

vegtab(taxa,set,minval=1,pltord,spcord,pltlbl,trans=FALSE)

Arguments

taxa

a vegetation (or other taxon) data.frame

set

a logical variable specifying which samples to include

minval

a minimum abundance threshold to include in the table

pltord

a numeric vector specifying the order of rows in the output

spcord

a numeric vector specifying the order of columns in the output

pltlbl

a vector specifying an alternative row label (must be unique!)

trans

a logical variable to control transposing the table

Value

a data.frame with specified rows, columns, and row.names

Details

Subsets a vegetation data.frame according to specified plots or minimum species abundances, optionally ordering in arbitrary order.

References

http://ecology.msu.montana.edu/labdsv/R/labs/lab3/lab3.html

See Also

vegemite

Examples

Run this code
# NOT RUN {
    data(bryceveg) # returns a vegetation data frame called bryceveg
    data(brycesite) # returns an environmental data frame called brycesite
    vegtab(bryceveg,minval=10,pltord=brycesite$elev)
        # produces a sorted table for species whose abundance sums
        # to 10, with rows in order of elevation.
# }

Run the code above in your browser using DataLab