Combine multiple functions to a single function returning a named vector of outputs

funstofun(...)

Author

Hadley Wickham <h.wickham@gmail.com>

Arguments

...

functions to combine

Details

Each function should produce a single number as output

Examples

funstofun(min, max)(1:10)
#> min max 
#>   1  10 
funstofun(length, mean, var)(rnorm(100))
#>       length         mean          var 
#> 100.00000000   0.08117855   1.41970203