What is an anonymous function in R and what does the \(x) lambda shorthand mean?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what an anonymous function is in R and what the backslash lambda shorthand added in R 4.1 means. Tests understanding of inline functions passed to apply-style functions, closures and scoping, and whether the shorthand changes behavior.