Exercise: Use arrange() in combination with desc()

The gapminder_2007 dataset contains economic and demographic data about various countries for the year 2007. Arrange the tibble and inspect which countries had the largest population in 2007! The dplyr package is already loaded.

  1. Apply the arrange() function on the gapminder_2007 tibble.
  2. Sort the tibble in a descending order based on the pop column.
Output

Submit code to see output here.

Sort data frames by columns