Week 5

Tidying and joining spatial data

weeks
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:10.21428/2c646de5.fc6a97cc.
  • Karl W. Broman and Kara H. Woo “Data Organization in Spreadsheets,” The American Statistician 72, no. 1 (January 2, 2018): 2–10, doi:10.1080/00031305.2017.1375989.

Participate

🖥️ Tidying and joining data

Practice

Exercise details to be provided.