Note: The 2024 course website is a work-in-progress. Check back soon for updates!

Week 5

Tidying and joining spatial data

Published

September 25, 2024

Summary
This week we are learning to use {dplyr} and {tidyr} to join tables and switching data between a wide and long format.

Overview

Key Objectives

  • Practice joining tables by attribute with {dplyr}
  • Practice converting between wide and long data formats with dplyr::pivot_longer() and dplyr::pivot_wider()
  • Practice recoding categorical attribute data using the {forcats} package

Prepare

Required readings

Optional readings

  • Catherine D’Ignazio and Lauren Klein “Who Collects the Data? A Tale of Three Maps,” MIT Case Studies in Social and Ethical Responsibilities of Computing (February 5, 2021), doi:.
  • Karl W. Broman and Kara H. Woo “Data Organization in Spreadsheets,” The American Statistician 72, no. 1 (January 2, 2018): 2–10, doi:.

Participate

🖥️ Tidying and joining data

Practice

Exercise details to be provided.