Skip to main content

Use tidy data to make every downstream verb simpler

Recognize and reshape untidy data into tidy rows and columns.

r-for-data5 min read

Untidy data makes future columns pretend to be new logic. The mechanism Tidy data is not an aesthetic preference; it is an interface contract for analysis. Wickham’s tidy-data principle gives each variable its own column, each observation its own row, and each observational unit its own table. The mechanism matters in R because dplyr, ggplot2, tidymodels, and many modeling functions expect variables to be columns and repeated observations to be rows. When month names live in headers, the calendar is hidden in metadata instead of available as data. That forces custom code for every new month. When the same data…

Read the full lesson

Sign up free: one personalized lesson every day, matched to your role and goals.

← Back to library

Contact us