Learn R Programming

labdsv (version 2.1-0)

abundtrans: Species Abundance Data Transformation

Description

Transforms species abundances according to an arbitrary specified vector

Usage

abundtrans(comm,code,value)

Value

a data.frame of transformed abundance data

Arguments

comm

the original community 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

Author

David W. Roberts droberts@montana.edu

Details

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

See Also

decostand, wisconsin

Examples

Run this code
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)
midpoint <- abundtrans(bryceveg,old,new)

Run the code above in your browser using DataLab