Added R code and reference to paper in README.md.