compose | R Documentation |
In infix and prefix forms.
compose(...) f %.% g
... |
n functions to apply in order from right to left |
f, g |
two functions to compose for the infix form |
not_null <- `!` %.% is.null not_null(4) not_null(NULL) add1 <- function(x) x + 1 compose(add1,add1)(8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.