1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Introduction to the Tidyverse

Connected

अभ्यास

Arranging observations by life expectancy

You use arrange() to sort observations in ascending or descending order of a particular variable. In this case, you'll sort the dataset based on the lifeExp variable.

निर्देश

100 XP
  • Sort the gapminder dataset in ascending order of life expectancy (lifeExp).
  • Sort the gapminder dataset in descending order of life expectancy.