Skip to content
Join our email list to get $80 off Ally in November →
R for the Rest of Us Logo

R in 3 Months (Fall 2026)

Week 8 Live Session (Fall 2026)

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

In this week 8 session we answered questions on tidying survey data, then covered converting text to numbers, saving data as RDS, and working with dates. We also looked at fixing common join problems and returned to iteration and writing functions.

You'll learn:

  • How to pivot select-all survey columns longer, filter to the yes responses, and count them
  • When to use as.numeric() and when to use parse_number() to convert character data
  • Why saving a cleaned dataset as RDS keeps factor ordering, while a CSV loses it
  • How to fix joins that fail on mismatched variable types or give many-to-many warnings
  • How to standardize messy date columns with {lubridate} functions like ymd()

Resources mentioned:

Key moments:

  • 06:52 Participant question on tidying select-all survey data
  • 12:21 Demo: pivot longer, filter to 1s, and count responses
  • 16:47 Handling Likert and multiple choice questions in separate data frames
  • 18:14 Question on exporting survey data wide or long
  • 19:18 Pulling survey data directly into R through an API
  • 22:10 as.numeric() versus parse_number()
  • 26:37 Using AI to write a regular expression for zip codes
  • 28:25 Question on the difference between tibble() and tribble()
  • 30:45 Demo: why RDS keeps factors and CSV does not
  • 35:05 Working with dates in {lubridate}
  • 42:19 Fixing joins with mismatched zip code types
  • 46:09 Many-to-many join warning and joining on two variables

Learn More

Iterative functions

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Course Content

143 Lessons

New from Ally Translate between base R and the tidyverse