R code

I'm providing the R code used in the classroom presentations (which were assembled using R markdown and knitr). The scripts also use some functions I've written for my own convenience Afterdownloading the file, the functions can be loaded using source("functionsRB.R")