R code for the Coursera Data Science course.