[This article was first published on Statistics Blog » r, 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.
But this requires package heR.Misc so you might as well just use:
To leave a comment for the author, please follow the link and comment on their blog: Statistics Blog » r.