Overview
Teaching: 5 min
Exercises: 5 minQuestions
What is tidy data structure?
How do I use
tidyr
to restructure messy data?Objectives
To understand the importance of tidy data structure
To tidy our data in preparation for the final figure
Tidy data structure rules:
Restructure tables with messy data.
Important tidyr
functions:
Gapminder data
time series is stored cross-tabulated.
tidyr
Fill-in Challenge
dplyr
Review Fill-in Challenge
Key Points
Tidy data has one value per cell and all similar values in a single column.