funrar_stack | R Documentation |
From a stacked (= tidy) data.frame and functional distance matrix compute all indices included in the package: functional uniqueness (regional, functional), functional distinctiveness (local, functional), geographical restrictedness (regional, extent), scarcity (local, abundance). Note: scarcity can only be computed if relative abundances are provided in the data.frame.
funrar_stack(com_df, sp_col, com, abund = NULL, dist_matrix)
com_df |
a stacked (= tidy) data.frame from a single community with each row representing a species in a community |
sp_col |
a character vector, the name of the species column in |
com |
a character vector, the column name for communities names |
abund |
a character vector, the name of the column containing relative abundances values |
dist_matrix |
a functional distance matrix as given by
|
A list of 3 objects (or 4 if abund
is not NULL
):
a vector containing uniqueness values per species,
a site-species matrix with functional distinctiveness values per species per site,
a vector containing geographical restrictedness values per species,
and if abund
is not NULL
,
a site-species matrix with scarcity values per species per site.
uniqueness_stack()
, distinctiveness_stack()
,
restrictedness_stack()
, scarcity_stack()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.