functcomp.treeco: Calculate Trait Community Weighted Means

functcomp.treecoR Documentation

Calculate Trait Community Weighted Means

Description

This function is adapted from the function 'functcomp()' from package 'FD' (Laliberté et al. 2014). It returns for each trait the community-level weighted means (CWM), which can be used to describe the functional composition of communities.

Usage

functcomp.treeco(x, a, CWM.type = "all", bin.num = NULL, CWM.sd = TRUE)

Arguments

x

matrix or data frame containing the functional traits.

a

matrix or data frame containing the abundances of the taxa listed in x.

CWM.type

character string indicating how nominal, binary and ordinal traits should be handled. Default to "all".

bin.num

vector indicating binary traits to be treated as continuous.

CWM.sd

should the weighted standard deviation of the numerical traits de returned? Default to TRUE.

Details

This function uses most of the codes from 'FD::functcomp()', so the help and details of this function should be consulted.

The main differences of 'functcomp.treeco()' from 'FD::functcomp()' are: – FINALIZAR –

References

Laliberté, E., Legendre, P., and B. Shipley. (2014). FD: measuring functional diversity from multiple traits, and other tools for functional ecology. R package version 1.0-12.

See Also

functcomp


LimaRAF/TreeCo documentation built on Sept. 25, 2024, 12:41 p.m.