Skip to main content

Course

Data Manipulation with dplyr

Basic4 hr

Build Tidyverse skills by learning how to transform and manipulate data with dplyr.

R4 hr13 videos44 Exercises3,700 XP170K+Statement of accomplishment

Create Your Free Account

Continue with Google
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Training a Team?

Try for Business

Course Description

Say you've found a great dataset and would like to learn more about it. How can you start to answer the questions you have about the data? Use dplyr to answer those questions.

First steps: Transforming data with dplyr

This course is designed to teach users how to efficiently manipulate and transform data using the dplyr package in R.

First, explore fundamental data transformation techniques, including the use of key dplyr verbs like select, filter, arrange, and mutate. These functions will teach you how to modify datasets by selecting specific columns, filtering rows based on conditions, sorting data, and creating new calculated columns​​.

Aggregating data with dplyr

Next, the course covers data aggregation, teaching users how to summarize and condense data for better interpretation.

You’ll understand how to make your data more interpretable and manageable​​. Functions such as count, group_by, and summarize are introduced to perform operations that aggregate many observations into meaningful summaries, essential for data analysis and reporting.

Selecting and transforming data

Finally, you will learn advanced data selection and transformation techniques, such as using select helpers and the rename verb. You will also get to apply your skills to a real-world case study and practice grouped mutates, window functions, and data visualization with ggplot2.

By the end of the course, you will have developed robust data manipulation skills using dplyr, enabling more efficient and effective data analysis​​—a vital capability for any data analyst or scientist.

Feels like what you want to learn?

Start Course for Free

What you'll learn

  • Assess grouped mutate operations and window functions to compute intra-group metrics such as year-over-year changes
  • Differentiate between count(), group_by + summarize(), and slice_min/slice_max when aggregating or extracting extreme observations
  • Evaluate multi-step dplyr pipelines that integrate several verbs to generate analytical insights from the counties and babynames datasets.
  • Identify the appropriate dplyr verb to perform specific data transformations involving selection, filtering, arrangement, and mutation
  • Recognize how select helpers, rename(), and relocate() alter column selection, naming, and ordering within a tibble

Prerequisites

Curriculum

Course outline

1

Transforming Data with dplyr

2

Aggregating Data

Now that you know how to transform your data, you'll want to know more about how to aggregate your data to make it more interpretable. You'll learn a number of functions you can use to take many observations in your data and summarize them, including count, group_by, summarize, ungroup, and slice_min/slice_max.
Start Chapter
3

Selecting and Transforming Data

Learn advanced methods to select and transform columns. Also, learn about select helpers, which are functions that specify criteria for columns you want to choose, as well as the rename verb.
Start Chapter
4

Case Study: The babynames Dataset

Work with a new dataset that represents the names of babies born in the United States each year. Learn how to use grouped mutates and window functions to ask and answer more complex questions about your data. And use a combination of dplyr and ggplot2 to make interesting graphs to further explore your data.
Start Chapter
R

Data Manipulation with dplyr

Course
Complete

Earn Statement of Accomplishment

Enroll Now

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.