Skip to main content
HomeRJoining Data with dplyr

Joining Data with dplyr

Learn to combine data across multiple tables to answer more complex questions with dplyr.

Start Course for Free
4 Hours13 Videos49 Exercises
63,004 LearnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

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


Course Description

Often in data science, you'll encounter fascinating data that is spread across multiple tables. This course will teach you the skills you'll need to join multiple tables together to analyze them in combination. You'll practice your skills using a fun dataset about LEGOs from the Rebrickable website. The dataset contains information about the sets, parts, themes, and colors of LEGOs, but is spread across many tables. You'll work with the data throughout the course as you learn a total of six different joins! You'll learn four mutating joins: inner join, left join, right join, and full join, and two filtering joins: semi join and anti join. In the final chapter, you'll apply your new skills to Stack Overflow data, containing each of the almost 300,000 Stack Oveflow questions that are tagged with R, including information about their answers, the date they were asked, and their score. Get ready to take your dplyr skills to the next level!
  1. 1

    Joining Tables

    Free

    Get started with your first joining verb: inner-join! You'll learn to join tables together to answer questions about the LEGO dataset, which contains information across many tables about the sets, parts, themes, and colors of LEGOs over time.

    Play Chapter Now
    The inner_join verb
    50 xp
    What columns would you join on?
    50 xp
    Joining parts and part categories
    100 xp
    Joining with a one-to-many relationship
    50 xp
    Joining parts and inventories
    100 xp
    Joining in either direction
    100 xp
    Joining three or more tables
    50 xp
    Joining three tables
    100 xp
    What's the most common color?
    100 xp
  2. 2

    Left and Right Joins

    Learn two more mutating joins, the left and right join, which are mirror images of each other! You'll learn use cases for each type of join as you explore parts and colors of LEGO themes. Then, you'll explore how to join tables to themselves to understand the hierarchy of LEGO themes in the data.

    Play Chapter Now
  3. 4

    Case Study: Joins on Stack Overflow Data

    Put together all the types of join you learned in this course to analyze a new dataset: Stack Overflow questions, answers, and tags. This includes calculating and visualizing trends for some notable tags like dplyr and ggplot2. You'll also master one more method for combining tables, the bind_rows verb, which stacks tables on top of each other.

    Play Chapter Now

In the following tracks

Associate Data Scientist in RData Analyst with RData Manipulation with R

Collaborators

Collaborator's avatar
Amy Peterson
DataCamp Content Creator

Course Instructor

DataCamp offers interactive R, Python, Spreadsheets, SQL and shell courses. All on topics in data science, statistics, and machine learning. Learn from a team of expert teachers in the comfort of your browser with video lessons and fun coding challenges and projects.
See More

What do other learners have to say?

Join over 13 million learners and start Joining Data with dplyr today!

Create Your Free Account

GoogleLinkedInFacebook

or

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