From a site-species matrix 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 site-species matrix.
funrar(pres_matrix, dist_matrix, rel_abund = FALSE)
a site-species matrix (presence-absence or relative abundances), with sites in rows and species in columns
a species functional distance matrix
logical (TRUE
or FALSE
) indicating if
site-species matrix contain relative abundances values or only
presence-absence data (default = FALSE
)
A list of 3 objects (or 4 if rel_abund = TRUE
):
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 rel_abund = TRUE
,
a site-species matrix with scarcity values per species per site.