Week 3 - Wrangling and tidying data

Data wrangling, joining, and tidying 🔧

Unsorted seashells. Photo by Jeremy Zero on Unsplash

Tasks

Videos

You can access the course videos on YouTube. You can also find a playlists for all course videos on YouTube here.

No.
Title
YouTube
Slides
Length
01 Tidy data 6:46
02 Grammar of data wrangling 13:13
03 Working with a single data frame 32:15
04 Working with multiple data frames 17:26
05 Tidying data 20:14

Class Activities

Activity
Title
Date
Review Tidying, Wrangling, and Joins Tue, 1 Feb
Lab 3 Nobel laureates Thu, 3 Feb

Assignments

Assignment
Title
Due
Due this week
Lab 02 Plastic waste Wed, 2 Feb, 23:59 EST
HW 02 Airbnb Listings Edinburgh Fri, 4 Feb, 23:59 EST
Q 02 Data wrangling Sun, 6 Feb, 23:59 EST
Due next week
Lab 03 Nobel laureates Wed, 9 Feb, 23:59 EST
HW 03 Road Traffic Accidents Fri, 11 Feb, 23:59 EST
Q 03 Data wrangling and visualization Sun, 13 Feb, 23:59 EST

If you’re having difficulty accessing your HW or Lab repo, see troubleshooting advice here.

Readings

📖 R4DS::Chp 4 - Workflow: basics Required
📖 R4DS::Chp 5 - Data transformation Required
📖 IMS::Chp 4-5 - Exploratory Data Analysis (If you haven’t read it last week!) Required

Code-along

The data come from TidyTuesday. TidyTuesday is a weekly social data project for the R community. Read more about TidyTuesday here.

You can find starter code for this session on RStudio Cloud, in the project titled Code Along 01 - Himalayan Climbers. We will be continuing where we left off last week.

Interactive R tutorials

The following are interactive R tutorials, designed to give you more practice with R. These are optional, but the “Road Traffic Accidents” dataset show up in your next homework assignment as well, so you might want to go through that one so that you can gain familiarity with it. If you’re struggling with any of the topics covered this week, we strongly recommend you work through the second tutorial as well.

Road Traffic Accidents Related to HW 03
Work with data Extra practice