How do attributes and the class() of an object work in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain how attributes attach metadata to R objects, what class() returns with and without an explicit class attribute, and how the class drives S3 method dispatch. Tests working knowledge of R objects, including the difference between class() and typeof().