Which data structure is used to store categorical variables in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks which R data structure is built for categorical variables and how it represents the categories internally. Tests knowledge of ordered and unordered categories, how models and plots treat them, and the conversion pitfalls that trip up R users.