R code for R programming course on Coursera