multi.argument.Compose {functional} | R Documentation |
Thanks, Alexander Davis!
multi.argument.Compose(...)
... |
the functions to be composed |
A composed function
f <- function(x, y) x+y
g <- function(x) x*2
stopifnot(multi.argument.Compose(f, g)(1,1) == 4)