R code for Coursera Data Science courses