Assignment 2

This is assignment 2 of the course 'r programming' at coursera