Split, Apply, Combine: Using <tt>plyr</tt> (Introduction to Statistical Computing)
Three-Toed Sloth 2013-12-20
Summary:
Lecture 13, Split/apply/combine II: using plyr. Abstracting the split/apply/combine pattern: using a single function to appropriately split up the input, apply the function, and combine the results, depending on the type of input and output data. Syntax details. Examples: standardizing measurements for regularly-sampled spatial data; standardizing measurements for irregularly-sampled spatial data; more fun with strikes and left-wing politics. Limitations of the split/apply/combine pattern.
Shorter lecture 13: The lecturer is a gushing Hadley Wickham fanboy.
(This week's lectures are ripped off from slides by Vince Vu, with permission.)