compose | R Documentation |
Composes two or more functions into a single function. The returned function calls all provided functions in reverse order: The return value of the last function servers as input for the next to last function, and so on.
compose(...)
... |
( |
(function()
) which calls the functions provided via ...
in reverse order.
f = compose(function(x) x + 1, function(x) x / 2)
f(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.