Attempt PA 2 - R programming

My attempt at the 2nd programming assignment on Coursera's R Programming
course.