Get startedGet started for free

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

This exercise is part of the course

Programming with dplyr

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Choose columns starting with "gov"
imf_data %>% 
	select(___(___))
Edit and Run Code