| fx | R Documentation |
'fx(body)' is essentially equal to 'function(x) body'. This can be used to quickly create functions, with minimal syntactic burden.
fx(
.body,
template = function(x) {
},
.env = parent.frame()
)
.body |
the expression that will form the body of the function, it is not evaluated. |
template |
a template for the function, providing its formal parameters. |
.env |
the environment in which the body of the function is evaluated. |
a function with .body as body
f = fx(sin(x)+cos(x))
f
f(pi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.