compose: Function composition

Description Usage Arguments Details Value Examples

Description

Function composition

Usage

1

Arguments

...

functions to be composed

Details

see the infix version %c%

Value

compose returns the composed of functions listed in .... Pay attention to the order, compose(f, g) returns g(f()).

Examples

1
2
f <- compose(is.na, sum)
f(c(1, NA, NA))

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.