modified R script
Merge branch 'master' of https://github.com/kunanit/ProgrammingAssignment2