juniorR
What is a data frame in R?
Updated May 24, 2026
Short answer
A data frame is a tabular structure with rows and columns.
Deep explanation
Each column can contain different data types, making it suitable for datasets.
Real-world example
Customer records stored as rows in a data frame.
Common mistakes
- Treating data frames like matrices.
Follow-up questions
- How is a data frame different from a matrix?
- What is tibble?