Description Usage Arguments Value Examples
functcomp returns the functional composition of a set of communities, as measured by the community-level weighted means of trait values (CWM; e.g. Lavorel et al. 2008). functcomp_w also allows to weight CWM by biomass
1 2 3 | functcomp_bm(x, a, CWM.type = c("dom", "all"), bin.num = NULL,
Weigthedby = c("abundance", "biomasCarabids", "biomasBees", "biomassValue"),
biomassValue = NA)
|
Weigthedby |
character string indicating if should be weighted by 'abundance' or 'biomassValue'. If biomassValue is in length units for Carabids or bees, use options 'biomasCarabids' or 'biomasBees' to automatically convert it to mass. |
biomassValue |
numerical vector with body weigh (or length) values for each species in the same order as species are provided. It can also be a matrix or data frame with one mass value for each community and species (both communities and species arranged like in a). |
same |
as functcomp |
a data frame containing the CWM values (weighted by abundance or by biomass) of each trait for each community.
1 2 3 | ex1 <- functcomp_bm(dummy$trait, dummy$abun, Weigthedby = "biomassValue",
biomassValue = c(1.2, 2.3, 0.6, 1.0, 3.4, 0.2, 1.6, 2.2))
ex1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.