Promote your favorite R functions

November 9, 2010

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

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.