eval {reflections} | R Documentation |
Evaluate an R expression in a specified environment.
eval(expr,
x = NULL);
eval evaluates the expr argument in the environment specified by envir and returns the computed value. If envir is not specified, then the default is parent.frame() (the environment where the call to eval was made). Objects to be evaluated can be of types call Or expression Or name (when the name Is looked up in the current scope And its binding Is evaluated), a promise Or any of the basic types such as vectors, functions And environments (which are returned unchanged).
The result of evaluating the object: for an expression vector this is the result of evaluating the last element.