From time to time I think I'll post some of my favorite functions on here that I always seem to forget about that make life easier. For example the "which" function, which can often be replaced by using brackets in a clever manner, but can be invaluable in other instances. Another is the "match" function, which is great when you have, say, a sub list of rownames from a full list that you want to do something with. Another interesting function that was useful last week was the "jitter" function, which adds a specified amount of random error elements in a vector
Some of my favorite online references are listed below. When I want to know how to do something in R, before searching through google, I'll often check these out first:
A great collection of graphs and plots
Some basic plotting examples
I haven't explored this site as much, but it has some nice things
When I find myself googling for specific examples it often results in searching through the R mailing lists archive. More likely than not it'll take a few rewordings of my question before I find exactly what I want. And I somehow have overlooked the obvious help files in R found by typing in ?function, as well as the great manuals found on the The Comprehensive R Archive Network
I was hoping this post would be only one sentence to match your efficiency as a programmer. Regardless, a very good post.
ReplyDeletedon't be crazy you are a great and efficient R programmer!
ReplyDeleteI suppose I could rewrite it as one sentence:
ReplyDeleteR resource = ask Alan.
http://www.r-bloggers.com/
ReplyDeleteMaybe you can get yourself in the aggregation.
http://stackoverflow.com/questions/tagged/r
and http://stats.stackexchange.com/questions/tagged/r
while redundant, make for good modern QA sites.
This is pretty nice too; if anyone would ever contribute all the R ways to do things.
ReplyDeletehttp://rosettacode.org/wiki/Category:Programming_Tasks
http://rosettacode.org/wiki/R