Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

multi.argument.Compose

Composition with multiple arguments.


Description

Thanks, Alexander Davis!

Usage

multi.argument.Compose(...)

Arguments

...

the functions to be composed

Value

A composed function

Examples

f <- function(x, y) x+y
g <- function(x) x*2
stopifnot(multi.argument.Compose(f, g)(1,1) == 4)

functional

Curry, Compose, and other higher-order functions

v0.6
GPL (>= 2)
Authors
Peter Danenberg <pcd@roxygen.org>
Initial release
2014-07-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.