Learn R Programming

labdsv (version 1.8-0)

vegtrans: Vegetation Data Transformation

Description

Transforms vegetation abundances according to an arbitrary specified vector

Usage

vegtrans(taxa,code,value)

Arguments

taxa

the original vegetation (or other taxon) data.frame

code

a vector containing the set of values appearing in the original data.frame

value

a vector containing the set of respective values to substitute

Value

a data.frame of transformed vegetation

Details

Performs a respective substitution to transform specific values in an initial data.frame to other specified values.

References

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

See Also

decostand, wisconsin

Examples

Run this code
# NOT RUN {
    data(bryceveg)
    old <- c(0.2,0.5,1.0,2.0,3.0,4.0,5.0,6.0)
    new <- c(0.2,0.5,3.0,15.0,37.5,62.5,85.0,97.5)
    newveg <- vegtrans(bryceveg,old,new)
# }

Run the code above in your browser using DataLab