How do you create and subset a data frame in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to build a data frame in base R and select rows and columns from it. Tests bracket indexing, the difference between the $, [[ ]] and [ ] accessors, when a single-column selection turns into a vector, and how missing values affect row filters.