Learn R Programming

lefse (version 0.1)

com.trait.weighted: Quantifies the moments of the community trait distribution weighted by abundance

Description

Quantifies the moments of the community trait distribution weighted by abundance

Usage

com.trait.weighted(my.sample, traits)

Arguments

my.sample
A community data matrix.
traits
A trait file with species names as row names and trait as columns.

Value

com.weighted.mean The abundance weighted mean trait value in the community. com.weighted.sd The abundance weighted standard deviation of trait values in the community.

Details

Quantifies the moments of the community trait distribution weighted by abundance

References

Swenson, N.G. 2014. Functional and Phylogenetic Ecology in R. Springer UseR! Series, Springer, New York, New York, U.S.A.

See Also

com.trait.moments

Examples

Run this code



data(lefse.sample)
data(lefse.traits)
com.trait.weighted(lefse.sample, lefse.traits)



Run the code above in your browser using DataLab