Advanced
R
Q83 / 100
What is "non-standard evaluation" (NSE) and how does it relate to functions like "subset()" or dplyr verbs?
Correct! Well done.
Incorrect.
The correct answer is B) NSE allows a function to capture the unevaluated expression of an argument (via substitute()/quote() or tidy evaluation) so it can be evaluated in a custom context, e.g. allowing column names to be referenced without quotes
B
Correct Answer
NSE allows a function to capture the unevaluated expression of an argument (via substitute()/quote() or tidy evaluation) so it can be evaluated in a custom context, e.g. allowing column names to be referenced without quotes
Explanation
Functions using NSE (like subset() with base R, or dplyr verbs with tidy evaluation) capture argument expressions unevaluated, allowing data frame column names to be used directly as if they were variables.
Progress
83/100