Week 2 solution

Coursera R programming Week 2 assignment