f | R Documentation |
A compact syntax for anonymous functions.
f(..., .env = parent.frame())
... |
The last argument is the body of the function, all others are arguments to the function. If there is only one argument, the formals are guessed from the code. |
.env |
parent environment of the created function |
a function
f(x + y) f(x + y)(1, 10) f(x, y = 2, x + y) f({y <- runif(1); x + y})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.