1. 学习
  2. /
  3. 课程
  4. /
  5. Programming with dplyr

Connected

练习

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().

说明 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.