Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
Filtering by row
Extracting data by column
16. Using starts_with() and ends_with()
Practice using filter() and select()
The pipe operator
Sorting rows


Great! We can also choose columns by what their names begin (starts_with()) or end (ends_with()) with. Place either function inside the select(), and don't forget the apostrophes.

If we wanted to select all columns ending with "area", we would write:

select(countries, ends_with("area"))


Select all columns with names ending in "population".

Stuck? Here's a hint!


select(countries, ends_with("population"))