Uploaded September 2019 | Updated November 2026, 3 hours ago
The is the first video in a tutorial series covering the basics of the dplyr library in R for data manipulation and cleaning.
I learned many of the practical coding skills used to make my videos taking courses on DataCamp:
► https://www.datacamp.com?tap_a=5644-dce66f&tap_s=777784-8ccc64&utm_medium=affiliate&utm_source=gregoryhamel
The dplyr package is a data manipulation library for R that provides a variety of helpful functions for doing common data cleaning tasks. dplyr lets you subset, reshape, join and summarize data, typically using less code than would be required in base R and with syntax that is often easier to read and logic that is easier to follow.
Dplyr is a part of the R tidyverse: an ecosystem of several libraries designed to work together by representing data in common formats. To load the dplyr library, you can install and load it as a standalone package or load the tidyverse. In addition to dplyr, the tidyverse includes ggplot2 for data visualization, stringr for string manipulation, reader for data importing, tibble which extends data frame objects with additional functionality and a few other packages.
View the whole dplyr in R playlist here:
youtube.com/watch?v=THGFXV4RW8U&list=PLiC1doDIe9rC8RgWPAWqDETE-VbKOWfWl
Link to the Kaggle Notebook code used for this video series:
kaggle.com/hamelg/dplyr-in-r
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
The is the first video in a tutorial series covering the basics of the dplyr library in R for data manipulation and cleaning.
I learned many of the practical coding skills used to make my videos taking courses on DataCamp:
► https://www.datacamp.com?tap_a=5644-dce66f&tap_s=777784-8ccc64&utm_medium=affiliate&utm_source=gregoryhamel
The dplyr package is a data manipulation library for R that provides a variety of helpful functions for doing common data cleaning tasks. dplyr lets you subset, reshape, join and summarize data, typically using less code than would be required in base R and with syntax that is often easier to read and logic that is easier to follow.
Dplyr is a part of the R tidyverse: an ecosystem of several libraries designed to work together by representing data in common formats. To load the dplyr library, you can install and load it as a standalone package or load the tidyverse. In addition to dplyr, the tidyverse includes ggplot2 for data visualization, stringr for string manipulation, reader for data importing, tibble which extends data frame objects with additional functionality and a few other packages.
View the whole dplyr in R playlist here:
youtube.com/watch?v=THGFXV4RW8U&list=PLiC1doDIe9rC8RgWPAWqDETE-VbKOWfWl
Link to the Kaggle Notebook code used for this video series:
kaggle.com/hamelg/dplyr-in-r
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

![How to Reverse Data in R
This video shows how to reverse vectors, strings and data frames by both columns and rows in R.
Code used in this clip:
# Reverse a vector
v <- c(Reverse, Me)
rev(v)
# Reverse a character string with stringi
library(stringi)
stri_reverse(Reverse Me)
# Reverse the columns of a data frame
data <- mtcars
head(data)
reversed_columns <- data[, rev(names(data))]
head(reversed_columns)
# Reverse the rows of a data frame
tail(data)
reversed_rows <- data[rev(1:nrow(data)), ]
head(reversed_rows)
Code Clips are basic code explanations in 3 minutes or less. They are intended to be short reference guides that provide quick breakdowns and copy/paste access to code needed to accomplish common data science tasks. Think Stack Overflow with a video explanation.
* Note: YouTube does not allow greater than or less than symbols in the text description, so the code above will not be exactly the same as the code shown in the video! For R that means I may use = for assignment and the special Unicode large < and > symbols in place of the standard sized ones for dplyr pipes and comparisons. These special symbols should work as expected for R code on Windows, but may need to be replaced with standard greater than and less than symbols for other operating systems. How to Reverse Data in R](https://i.ytimg.com/vi/TqFG0TpZVSg/mqdefault.jpg)








