What is a tibble?
mainA tibble (or tbl_df) is a modern reimagining of the R data.frame. It is designed to be "lazy and surly," meaning it performs fewer automatic transformations than a standard data.frame to help prevent silent errors:
- Does less: It does not change variable names or types, does not perform partial matching, and does not create
row.names(). - Complains more: It will throw errors or warnings when a variable does not exist rather than attempting to guess.
- Enhanced printing: The
print()method is optimized for large datasets and complex objects, showing column types and a concise summary.
If you are new to tibbles, the tibbles chapter in R for Data Science is the recommended starting point.