1. Learn
  2. /
  3. Courses
  4. /
  5. Programming with dplyr

Connected

Exercise

Join with me

A common key to look up values, like iso in the imf_data and world_bank_data tibbles, is important in joining datasets. But wouldn't country also work? You'll examine this in this lesson.

Throughout this chapter, the dplyr package has been loaded for you.

world_bank_data has been trimmed to only focus on Asian countries and a few columns in the asia_wb tibble. A few columns were also selected from imf_data in the imf_subset tibble. asia_wb and imf_subset have been loaded for you.

Perform the appropriate joins to obtain the following results. Let dplyr identify the keys to join here.

Instructions 1/3

undefined XP
  • 1
    • Return all the rows in asia_wb and only rows in imf_subset with matching key values.
  • 2
    • Return only the rows with matching key values in both asia_wb and imf_subset.
  • 3
    • Return those rows in asia_wb that do not have matching key values in imf_subset.