What do the Map(), Reduce(), and Filter() functions do in R's functional programming toolkit?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what the base R higher-order functions Map, Reduce and Filter do and how they behave. Tests your grasp of their inputs and return types, folding options such as init and accumulate, how they relate to the apply family and purrr, and when vectorized code is the better choice.