funstofun {reshape} | R Documentation |
Combine multiple functions to a single function returning a named vector of outputs
funstofun(...)
... |
functions to combine |
Each function should produce a single number as output
Hadley Wickham <h.wickham@gmail.com>
funstofun(min, max)(1:10)
funstofun(length, mean, var)(rnorm(100))