dplyr: gather and spread @DataDaft
dplyr: gather and spread  @DataDaft
Uploaded September 2019 | Updated November 2026, 3 hours ago
The gather function in dplyr lets you turn wide data into a long format, while the spread function lets to turn long data into a wide format. Data in R generally likes to be in a long format, so knowing how to gather messy data into a tall format if necessary is an important part of the data cleaning process.

Link to the Kaggle Notebook code used for this video series:
kaggle.com/hamelg/dplyr-in-r

View the whole dplyr in R playlist here:
youtube.com/watch?v=THGFXV4RW8U&list=PLiC1doDIe9rC8RgWPAWqDETE-VbKOWfWl

dplyr cheat sheet from RStudio:
rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf

dplyr documentation:
cran.r-project.org/web/packages/dplyr/dplyr.pdf


Follow DataDaft on social media for news and updates:
Twitter: twitter.com/DataDaft

Join the DataDaft Discord to discuss all things data science:
discord.gg/ZS2yPNw

#dplyr #rprogramming #datascience
dplyr: gather and spreadMarch Madness Total Team Wins (1939-2019)Python for Data Analysis: Preparing Numeric DataHow To Get Absolute Values in PythonHow To Make a While Loop in PythonGoku Power Level Over TimeHow to Spread Columns in Pandas (Python)How to Make a Bubble Plot in Rstringr: String InterpolationHow to Sort a Data Frame by a Column in PandasPython Programming Practice: LeetCode #13   Roman to IntegerPython Programming Practice: LeetCode #58   Length of Last Word
DataDaft |

dplyr: gather and spread

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER