Commiting my solution to "Programming Assignment 2".
Course: R Programming (JHU, offered via Coursera / April 2014).