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

Exercise

You are the walrus

Getting a column name like `median(perc_electric_access, na.rm = TRUE)` in the previous lesson can be pretty difficult to work with as a programmer. In this exercise, you'll use the walrus operator (:=) and other rlang magic with dplyr to specify the name of that column instead.

Instructions 1/2

undefined XP
  • 1
    • Complete the function by passing in the tibble as .data along with the grouping and calculation columns.
  • 2
    • Call the function, grouping by continent, to calculate median perc_college_complete by continent for world_bank_data.