Can you explain how to use the subset() function in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to filter rows and choose columns of an R data frame with subset(). It tests the subset and select arguments, how missing values in the condition are handled compared with bracket indexing, and why non-standard evaluation causes trouble inside functions.