What does the %in% operator do in R and when would you use it?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain what the %in% operator does in R and when to use it for filtering rows by a set of values. It tests how membership tests relate to match(), how missing values are handled, and why comparing with == against several values gives wrong rows.