1. Learn
  2. /
  3. Courses
  4. /
  5. Programming with dplyr

Connected

Exercise

Summarize across multiple variables

The across() function also works smoothly with summarize() for calculating across multiple rows. This is much faster and with less code than summarizing across each column individually.

Instructions

100 XP
  • Keep only rows corresponding to Bolivia.
  • Go across all columns containing "perc".
  • Find the minimum value for each of these columns.
  • Add "min_" to the beginning of each of the column names.