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)
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.
a stacked (= tidy) data.frame from a single community with each row representing a species in a community
a character vector, the name of the species column in com_df
a character vector, the column name for communities names
a character vector, the name of the column containing relative abundances values
a functional distance matrix as given by
compute_dist_matrix()
, with species name as row and column names
uniqueness_stack()
, distinctiveness_stack()
,
restrictedness_stack()
, scarcity_stack()