Programming assignment 1 for Coursera's R programming course