[This article was first published on R Code – Geekcologist
, and kindly contributed to R-bloggers
]. (You can report issue about the content on this page here
Want to share your content on R-bloggers? click here
if you have a blog, or here
if you don't.
The version that was only available through GitHub is now also on CRAN. This new version corrects some minor bugs in the code.