Advanced
R
Q87 / 100
What is the difference between "quote()" and "eval()" in metaprogramming with R?
Correct! Well done.
Incorrect.
The correct answer is B) quote() captures an expression without evaluating it (returning an unevaluated call/expression object), and eval() evaluates such an expression in a given environment
B
Correct Answer
quote() captures an expression without evaluating it (returning an unevaluated call/expression object), and eval() evaluates such an expression in a given environment
Explanation
quote() returns the unevaluated expression as a language object, which can later be passed to eval() to execute it in a specified environment.
Progress
87/100