Eric Hu R Programming Assignment 2