Learn R Programming

funrar (version 1.5.0)

funrar: Compute all Functional Rarity Indices from Matrices

Description

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.

Usage

funrar(pres_matrix, dist_matrix, rel_abund = FALSE)

Value

A list of 3 objects (or 4 if rel_abund = TRUE):

Ui

a vector containing uniqueness values per species,

Di

a site-species matrix with functional distinctiveness values per species per site,

Ri

a vector containing geographical restrictedness values per species,

and if rel_abund = TRUE,

Si

a site-species matrix with scarcity values per species per site.

Arguments

pres_matrix

a site-species matrix (presence-absence or relative abundances), with sites in rows and species in columns

dist_matrix

a species functional distance matrix

rel_abund

logical (TRUE or FALSE) indicating if site-species matrix contain relative abundances values or only presence-absence data (default = FALSE)

See Also

uniqueness(), distinctiveness(), restrictedness(), scarcity()