Tidying Data in R with "tidyr" | R Tutorial (2020)

Опубликовано: 04 Февраль 2026
на канале: RichardOnData
10,982
447

Subscribe to RichardOnData here:    / @richardondata  

GitHub: https://github.com/RichardOnData/YouT...

In this video I show you how to tidy data in R, using the package "tidyr" from the tidyverse. Functions covered include pivot_longer() for going from wide to long format, pivot_wider() for going from long to wide format, separate() for breaking a column into multiple, unite() for bringing multiple columns into one, and fill() and complete() for handling explicitly or implicitly missing data.

Please note that code in this tutorial was adapted from Chapters 5 and 13 of the book "R for Data Science" by Hadley Wickham and Garrett Grolemund. The full book can be found at: https://r4ds.had.co.nz/#

Amazon link: https://amzn.to/2HEoj5Z

A good cheat sheet for "tidyr" functions can be found at: https://4.files.edl.io/b9e2/07/12/19/...

PayPal: [email protected]
Patreon:   / richardondata  
BTC: 3LM5d1vibhp1F7pcxAFX8Ys1DM6XLUoNVL
ETH: 0x3CfC599C4c1040963B644780a0E62d45999bE9D8
LTC: MH8yPjvSmKvpmRRmufofjRB9hnRAFHfx32