[R] Applying multiple functions to one object
Karl Ove Hufthammer
karl at huftis.org
Thu Feb 10 14:44:36 CET 2011
Den wrote:
> 'Aggregate multiple functions into a single function. Combine multiple
> functions to a single function returning a named vector of outputs'
>
> This is a short description of each() function from plyr package
>
> Here is an example from help
>
> each(min, max)(1:10)
Thanks! I really should have known about this, as I use the ‘plyr’ package
daily. It doesn’t handle multiple objects though, AFAICS, so hopefully the
function Vettorazzi and I created is of some use too. :)
--
Karl Ove Hufthammer
More information about the R-help
mailing list