How do separate() and unite() work in tidyr for splitting and combining columns?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain how the tidyr functions separate() and unite() split one column into several and combine several columns into one in R. It tests your knowledge of their main arguments, how separators are interpreted, and how mismatched pieces and missing values are handled.