powered by
Compose multiple functions
compose(...)
n functions to apply in order from right to left.
A function
# NOT RUN { not_null <- compose(`!`, is.null) not_null(4) not_null(NULL) add1 <- function(x) x + 1 compose(add1, add1)(8) # }
Run the code above in your browser using DataLab