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.
This exercise is part of the course
Programming with dplyr
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Return all rows of asia_wb and matching rows from imf_subset
___