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