Functions of the main script

This script holds the necessary functions to run the main script and reproduce data formatting & path analyses of "Multi-trophic β-diversity mediates the effect of environmental gradients on the turnover of multiple ecosystem functions"