This repository contains R code for the solution of assignment two of the R programming course by John Hopkins on Coursera