What are factors in R and how do levels and ordered factors work?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Explain what factors are in R and how levels and ordered factors behave. Tests knowledge of how R stores categorical data, how level order affects plots, tables and model baselines, what ordered factors change in models, and the common conversion traps.