evals {eply} | R Documentation |
Function evals
Description
Evaluate a character vector as a bunch of expressions.
Usage
evals(x = NULL, .with = parent.frame(), .simplify = TRUE)
Arguments
x |
character vector of expressions to evaluate |
.with |
list, data frame, or environment with the
data accessible to the expressions in |
.simplify |
|
Value
a list or vector of return values of .fun
.
See Also
Examples
# 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)
[Package eply version 0.1.2 Index]