fd_fdis | R Documentation |
This function computes Functional Dispersion (FDis) following Laliberté & Legendre (2010). NB: when a site contains no species FDis is equal to 0.
fd_fdis(traits, sp_com)
traits |
Trait matrix with species as rows and traits as columns.
It has to contain exclusively numerical values. This can be
either a |
sp_com |
Site-species matrix with sites as rows and species as columns
if not provided, the function considers all species with equal
abundance in a single site. This can be either a |
a data.frame with two columns:
site
the names of the sites as the row names of the input sp_com
,
FDis
the values of functional dispersion at each site.
If the sp_com
argument is not provided or if sp_com
doesn't have rownames,
arbitrary rownames s1
, s2
, s3
, etc. will be used.
NB: when a site contains no species FDis is equal to 0.
The computation of this function can be parallelized thanks to
future::plan()
. To get more information on how to parallelize your
computation please refer to the parallelization vignette with:
vignette("fundiversity_1-parallel", package = "fundiversity")
Laliberté, E., & Legendre, P. (2010). A distance-based framework for measuring functional diversity from multiple traits. Ecology, 91(1), 299–305. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1890/08-2244.1")}
data(traits_birds)
data(site_sp_birds)
fd_fdis(traits_birds, site_sp_birds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.