Introduction
Filtering by row
Extracting data by column
Practice using filter() and select()
The pipe operator
Sorting rows
Summary
28. Exercise 3

Instruction

Now we sort the results.

Exercise

Sort the result of the previous exercise by population using arrange().

Stuck? Here's a hint!

Type:

countries %>%
  filter(continent %in% c("Africa", "North America")) %>%
  select(country_name, population) %>%
  arrange(population)