Main script to process, format and analyse environmental, multi-trophic and ecosystem functions data

This script will allow the user to reproduce the main figures and analyses of "Multi-trophic β-diversity mediates the effect of environmental gradients on the turnover of multiple ecosystem functions". In particular, it built environmental and ecosystem functioning turnover matrices, built trophic groups and computes multiple assets of multi-trophic ß-diversity and computes multiple path analyses using lavaan. The associated script of functions is necessary to run this script.