计算政府雇员人数
在视频中,您使用了百分比变量 unemployment 来计算各县的失业人数。本练习中,您将对另一个百分比变量 public_work 做同样的事。
提供的代码已经选择了 state、county、population 和 public_work 列。
本练习是课程的一部分
使用 dplyr 进行数据处理
交互式实操练习
通过完成这段示例代码来试试这个练习。
counties_selected <- counties %>%
select(state, county, population, public_work)
counties_selected %>%
# Add a new column public_workers with the number of people employed in public work
___