Explain the pipe operator (%>% vs the native |>) in R. What are its benefits and how does it improve code readability?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how the magrittr pipe %>% and the native R pipe |> work, how they differ, and why piping makes R code easier to read. Tests placeholder rules, R version requirements, debugging habits, and judgment about when a pipeline should be split up.