Tidy data is a way of organizing data so that each row represents one observation and each column represents one variable. Tidy data makes it easier to explore, visualize, and model data.
Most data analysis tools in R work best when data are in a tidy format.
A dataset is considered tidy when:
Each variable has its own column.
Each observation has its own row.
Each value has its own cell.
Following these rules helps keep data organized and consistent.
In this table:
Each row is one student (an observation).
Each column is one variable.
Each cell contains a single value.
This is an example of tidy data.