Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Filtering by row
Extracting data by column
Practice using filter() and select()
17. Reminder – filtering rows
The pipe operator
Sorting rows
Summary

Instruction

Awesome! We know how to subset rows (with filter()) and columns (with select()). The next step, of course, is to combine these two ways of subsetting data.

First, practice subsetting rows.

Exercise

Select all Asian countries, and assign the results to the asian_countries variable.

Stuck? Here's a hint!

Use:

filter(data, condition)

Type:

asian_countries <- filter(countries, continent == "Asia")