5 Data tidying

Learning objectives:

  • Classify datasets as tidy or non-tidy.
  • Pivot data to make it tidy.
  • Recognize reasons for non-tidy data.

Apart from the book content, these slides also borrow from vignette("pivot", "tidyr") and contain some new diagrams.