Description Usage Arguments Value See Also Examples
Evaluate a character vector as a bunch of expressions.
1 | evals(x = NULL, .with = parent.frame(), .simplify = TRUE)
|
x |
character vector of expressions to evaluate |
.with |
list, data frame, or environment with the
data accessible to the expressions in |
.simplify |
|
a list or vector of return values of .fun
.
1 2 3 4 | # Get an example list of supporting data. Could be an environment.
.with <- example.with()
# Row-by-row, evaluate the code in .expr and feed the results to the function.
evals(x = c("a + 1", "b + 2"), .with = .with)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.