Promote your favorite R functions

November 9, 2010

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

The 27 base and recommended libraries of the standard R 2.12 distribution together contain 3556 functions (you can check using the code posted after the jump). Many of the functions are commonly used: c, data.frame, rnorm, lm. But some of those functions, while being extremely useful, may be less well known to many R users. Some examples I'd wish I'd learned about earlier include tapply, agrep, and formatC. There are also several really useful help pages that aren't associated with specific functions at all, like Syntax and .Machine, that don't get the exposure they deserve.

To help get some of these "hidden gems" of the R documentation better known, we've added a "Function of the Day" section to the home page of What R functions and help pages do you wish you'd known about earlier? Add a comment to your favorite pages in the Language Reference explaining why they deserve more love, and we'll consider the comments nominations for the Function of the Day. Language Reference

# list of base and recommended packages in R 2.12
base.rec <- c(
n.obj <- rep(0, length(base.rec))
names(n.obj) <- base.rec
# count objects in each package
for(p in base.rec) {
	n.obj[p] <- length(
# total count

To leave a comment for the author, please follow the link and comment on their blog: Revolutions. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...


Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)