Code from the R programming module of Data Science