On January 28th at 9:00 UTC Academy will be unavailable for 10 minutes due to planned maintenance break.
Kickstart 2020 with new opportunities! - hours only!Up to 80% off on all courses and bundles.-Close
Filtering by row
Extracting data by column
12. Select a range of columns by name
Practice using filter() and select()
The pipe operator
Sorting rows


But with the dplyr package, we can choose ranges of columns another way – by name! Let's select the country_name, continent, and population columns, which are all next to each other. To do that, we'd write:

select(countries, country_name:population)


Select the columns from population to water_area by name.

Stuck? Here's a hint!


select(countries, population:water_area)