Here you can find ready to use code material related to my work.
R-package Select: Determines Species Probabilities Based on Functional Traits (R) https://cran.r-project.org/web/packages/Select/index.html
Related paper: D. Laughlin, L. Chalmandrier et al. 2018 Early view
Description: Restoration ecologists aim to re-establish diverse, functioning communities. This R package produces a species assemblage (i.e., a species relative abundance distribution) based on a user-defined functional trait profile. The species abundances can converge on specific community-weighted mean trait values and this function can simultaneously maximize functional diversity.
Time lag community model (Matlab)
Related paper: Alexander, Chalmandrier et al. 2017 Global Change Biology