funrar package

Travis-CI Build Status DOI

funrar is a package to compute functional rarity indices, it quantifies how species are rare both from a functional and an extent point of view. Following the different facets of rarity proposed by Rabinowitz (1981). See this reference for more details on Functional Rarity indices:

Violle C., Thuiller W., Mouquet N., Munoz F., Kraft NJB, Cadotte MW, Livingstone SW, Mouillot D., Functional Rarity: The Ecology of Outliers, Trends in Ecology & Evolution, Volume 32, Issue 5, May 2017, Pages 356-367, ISSN 0169-5347,


The package is on CRAN, you can install it using:


If you want to have the latest development version use devtools:

# install.packages("devtools") # If 'devtools' is not installed yet
devtools::install_github("Rekyt/funrar", build_vignettes = TRUE)


Apart from base packages dependencies, funrar depends on dplyr and cluster.

Example vignettes

In addition to code example included in help of functions, two vignettes explain how to use the package. The functional rarity indices vignette explains in details the different indices and function provided; while the sparse matrices vignette shows how to use sparse matrices to gain speed in memory when computing functional rarity indices.

Access the vignette through R using the vignette() function.


Rabinowitz D., Seven forms of rarity In The Biological Aspects of Rare Plant Conservation (1981), pp. 205-217