How does the split() function work in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: An R programming interview question about how the split() function divides a vector or data frame into groups. It tests whether you know what the function returns, how it fits a split-apply-combine workflow, and how it treats multiple grouping factors, empty levels and recombining the pieces.