按分组计算失业率中位数
现在轮到您亲自上手使用 rlang 和它的花括号({{ }})运算符了!
本章其余部分也已为您预先加载了 rlang 包。
本练习是课程的一部分
使用 dplyr 编程
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Finish the function definition
grouped_median_unemploy <- ___(group_col) {
world_bank_data %>%
select(iso, country, year,
continent, region, unemployment_rate) %>%
___( ___ ) %>%
___(
median_unemployment = ___(___))
}