Learn R Programming

reshape (version 0.8.10)

funstofun: Aggregate multiple functions into a single function

Description

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

Usage

funstofun(...)

Author

Hadley Wickham <h.wickham@gmail.com>

Arguments

...

functions to combine

Details

Each function should produce a single number as output

Examples

Run this code
funstofun(min, max)(1:10)
funstofun(length, mean, var)(rnorm(100))

Run the code above in your browser using DataLab