R code & functions

Here are some R functions which I have written and used in past studies.  Please refer to the original papers for further explanations, citations and context. Each title is linked to my github repository, which can generally be accessed here.


Biotic Novelty Index

Function to calculate the Biotic Novelty Index, as well as a set of R code and data to reproduce the community simulations and the first case study from our 2020 study in Global Change Ecology.

Schittko & Bernard-Verdier et al. , Global Change Biology, 2020


Testing trait distributions in ecological communities

The repository is a toolbox of R functions and workflow for trait-based community ecology that I assembled over the years. I wrote these R functions to test the trait range, trait moments (mean, variance, skewness, kurtosis) and Rao’s quadratic entropy (functional or phylogenetic) within local communities against null models.

Bernard-Verdier et al., Journal of Ecology, 2012

Bernard-Verdier et al. Journal of Vegetation Science, 2013

Bernard-Verdier & Hulme, Journal of Ecology, 2015