Programming Assignment 2 Complete

Edited R code to reflect completion of assignment.