BETA code from Modelling tropical forest responses to drought and El Niño with a stomatal optimization model based on xylem hydraulics

Code of the BETA model described in the manuscript written in R