An essential vocabulary for the R language

[This article was first published on Revolutions, 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 Oxford English Dictionary includes more than 600,000 words, yet most of us get by in our day-to-day lives with a vocabulary of just a few thousand. In a similar vein, the R language includes thousands of functions: when you start up R 2.13, you have 2832 functions at your disposal:

> length(apropos(".", mode="function"))
[1] 2382

This includes only the base packages attached by default: add in the recommended packages and all the packages on CRAN and you're easily into five figures.

But like English, you can make do with a much smaller vocabulary of R functions and still express yourself quite effectively. Hadley Wickham has published his essential vocabulary of R functions, listing just those functions you need for basic object operations, statistical analysis, working with the R system, data and text I/O, and dealing with specialized data types like dates and strings. There are about 350 functions on the list. This is a great idea: like many open-source projects, R has amassed many new functions (and indeed packages) that supersede (but not deprecate) older functionality, and it helps new users especially just to focus on those functions that are best for the job. Developing a small vocabulary of essential R functions is an important step forward.

github (Hadley Wickham): Vocabulary

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)