Explain the basic data structures in R: vectors, lists, matrices and data frames, and their typical use cases
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how R's vectors, lists, matrices and data frames differ and when to use each. It tests dimensions and element types, how the structures relate to each other, and pitfalls such as type coercion and the difference between single and double bracket indexing.