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

Connected

Exercise

Contain-ted love

You can use the contains() function inside of select() to return columns with names that contain a particular string. You'll work with the imf_data to return different subsets of columns with a string argument to contains().

Instructions 1/2

undefined XP
  • 1
    • Pick country name, year, and columns with the string "gdp" in their name.
  • 2
    • Pick country, year, and columns with names matching "as_perc" to identify those corresponding to percentages of GDP.