each {plyr}R Documentation

Aggregate multiple functions into a single function.

Description

Combine multiple functions into a single function returning a named vector of outputs.

Usage

  each(...)

Arguments

...

functions to combine. each function should produce a single number as output

Examples

each(min, max)(1:10)
each("min", "max")(1:10)
each(c("min", "max"))(1:10)
each(c(min, max))(1:10)
each(length, mean, var)(rnorm(100))

[Package plyr version 1.7.1 Index]