Coursera's Introduction to R Programming Course Homework