« Package Update Roundup: Nov 2009 | Main | Happy 1st Birthday, Revolutions! »

December 09, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a010534b1db25970b012876360916970c

Listed below are links to weblogs that reference The top 5 R functions:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Thanks for linking to these posts, David. I think the second link in your first paragraph is supposed to be http://www.johnmyleswhite.com/notebook/2009/12/08/r-function-usage-frequencies-take-2/ rather than http://www.johnmyleswhite.com/notebook/2009/12/07/r-function-usage-frequencies/.


I don't think "number of times called" is quite the right metric for "most important" - for the simple reason that some functions are important because you don't have to keep calling them.

For example, functions like those in the "apply" family (apply, tapply, sapply and so on) are important precisely because they often do all the "work" in a single call.

There are a number of other functions that fall into this category.

Certainly functions like c and if are important, even fundamental, and you can't get far without them, but I think the measure of importance penalizes functions that are better at not needing to be called a lot because they do so much.

In fact, I probably use ifelse (operating on an entire matrix) more than I use if in regular work, but if I was writing a lot of "production quality" functions, then if would need to be used more (for handling all the special cases that crop up that I'm usually able to ignore if I'm just doing something for myself).

Looks like a textbook example of Zipf's Law, with one 'blip' ('function'?).

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Revolution Analytics
Information about Revolution R

Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
R Contest - Click to Enter

R links

Recommended Sites

Search Revolutions Blog