R code for the analysis of field experiments data