char_expression_to_function | R Documentation |
Make a function from a character string representing an R expression
char_expression_to_function(expr)
expr |
A string representing an R expression e.g. |
A function with 2 formal arguments (x
, y
) which will
calculate the value of the given expression at this location
## Not run: f <- char_expression_to_function("x + y") f(1, 2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.