R scripts for data science coursera assingments