Data Tidying with {tidyr}
The concept of tidy data is, as the name suggests, of primary importance in the tidyverse. This lesson will introduce you to the criteria of tidy data, why it’s important, and how to reshape your raw data into a tidy format using the functions pivot_wider()
and pivot_longer()
, which are the more user-friendly and intuitive successors to the widely despised spread()
and gather()
.
Slides
Further Reading
R for Data Science chapter on tidy data
Tutorial on reshaping data from R-Ladies Sydney
The best scene from all 10 seasons of FRIENDS