Completed R Programming ProgrammingAssignment2