Learn R Programming

labdsv (version 2.0-1)

samptot: Sample total standardization

Description

Standardizes a community data set to a sample total standardization.

Usage

samptot(comm)

Value

A data frame of sample total standardized community data.

Arguments

comm

a community matrix (samples as rows, species as columns)

Details

This function simply calculates row sums for the community matrix and then divides all values in that row by the appropriate sum so that all samples total to 1.0.

References

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

See Also

spcmax, abundtrans

Examples

Run this code
    data(bryceveg)
    stveg <- samptot(bryceveg)
    apply(stveg,1,sum)

Run the code above in your browser using DataLab