Is turnover rate different across locations?
Lower cost of living often drives employees to look for opportunities elsewhere. In this exercise, you will explore if location affects turnover.
本练习是课程的一部分
HR Analytics: Predicting Employee Churn in R
练习说明
- Calculate the turnover rate for each
location. - Create a bar chart of turnover rates for each
location.
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Calculate location wise turnover rate
df_location <- org %>%
group_by(___) %>%
summarize(turnover_location = ___)
# Check the results
df_location
# Visualize the results
ggplot(df_location, aes(x = ___, y = ___)) +
geom_col()