Adding R code
Merge pull request #1 from benhuynh/master

Adding R code