Data Tidying with {tidyr}

Artwork by @allison_horst

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

  1. R for Data Science chapter on tidy data

  2. Tutorial on reshaping data from R-Ladies Sydney

  3. The best scene from all 10 seasons of FRIENDS

Department of Psychology

This bootcamp gives a gentle introduction to R and RStudio, transforming and visualizing data with the tidyverse, and the basics of R Markdown.