This is the R code used to analyse both the pay and expenses datasets