Looking for matches
You can use the matches() function inside of select() to return columns with names that match a particular string or regular expression. This can be helpful if the columns you want to choose do not fall immediately after each other but follow a particular pattern in their names. You'll work with the imf_data to return different subsets of columns according to patterns found with a string argument to matches().
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Programming with dplyr
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Choose country, year, and "perc" or "rate" columns
imf_data %>%
select(___)