Friday, April 26, 2013
Thursday, March 14, 2013
Here's a quick table of what I think are the most useful apply-style commands in R:
For alternatives to plyr, see this post on StackOverflow.
|apply||Rectangular||Rectangular or vector||Applying function to rows or columns|
|lapply||Anything||List||Non-trivial operations on almost any data type|
|sapply||Anything||Simplified (if possible) or list||Same as lapply, but with simplified output|
|plyr::ddply||data.frame||data.frame||Applying function to groupings defined by variables|
Saturday, February 2, 2013
Another site pops up with open code for analyzing public survey data: http://www.asdfree.com/ It will be interesting to see whether this gets used by the general public--given the growing trend of data journalism and so forth--versus academics. It is a useful resource for both.