We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Firefox.

Exercise: Use arrange() based on multiple columns

The gapminder_2007 tibble contains economic and demographic data about various countries for the year 2007. Arrange the tibble and inspect for each continent, which countries had the highest life expectancy in 2007! The dplyr package is already loaded.

  1. Apply the arrange() function on the gapminder_2007 tibble.
  2. Order the tibble based on the continent column!
  3. In case there are rows with the same continent, sort the tibble in a descending order based on the lifeExp column!

Submit code to see output here.