R Code for Coursera Data Science Certificate