functcomp_bm: Functional Composition from FD package with the option to...

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
functcomp_bm(x, a, CWM.type = c("dom", "all"), bin.num = NULL,
  Weigthedby = c("abundance", "biomasCarabids", "biomasBees", "biomassValue"),
  biomassValue = NA)

Arguments

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

Value

a data frame containing the CWM values (weighted by abundance or by biomass) of each trait for each community.

Examples

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

ibartomeus/fundiv documentation built on May 18, 2019, 1:29 a.m.