Coursera course peer assignment solved

Branched version of the assignment for the Coursera course R
programming.