Contain-ted love
你可以在 select() 中使用 contains(),來選出欄名包含特定字串的欄位。你將使用 imf_data,搭配傳入不同的字串給 contains(),以取得不同的欄位子集合。
本練習屬於課程
使用 dplyr 進行程式設計
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Choose country, year, and columns with "gdp" in their name
imf_data %>%
select(___)