Introduction
Filtering by row
Extracting data by column
16. Using starts_with() and ends_with()
Practice using filter() and select()
The pipe operator
Sorting rows
Summary

Instruction

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

Exercise

Select all columns with names ending in "population".

Stuck? Here's a hint!

Type:

select(countries, ends_with("population"))