BaşlayınÜcretsiz Başlayın

Bang bang into the room

You previously used {{ }} from the rlang package in a function definition to pass an unquoted column name to group_by(). This can also be done within summarize(). In this exercise, you'll work with !! and enquo(), but similar code could also be written to use {{ }}. You'll come back to that in the next lesson.

Bu egzersiz

Programming with dplyr

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Complete the function code, not using {{ }}
grouped_median_for_column <- ___(___, col_to_median) {
  world_bank_data %>% 
    group_by(___) %>% 
    summarize(median(___, 
                     na.rm = TRUE))
}
Kodu Düzenle ve Çalıştır