MulaiMulai sekarang secara gratis

Don't get me started

The helper functions in the tidyselect package assist you in choosing a subset of columns. In this exercise, you'll work with starts_with() from tidyselect and select() to choose some columns from imf_data.

The two columns of gov_revenue_as_perc_gdp and gov_net_debt_as_perc_gdp are governmental revenue and governmental gross debt minus assets, respectively, and are both a percentage of gross domestic product (GDP).

Latihan ini adalah bagian dari kursus

Programming with dplyr

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Choose columns starting with "gov"
imf_data %>% 
	select(___(___))
Edit dan Jalankan Kode