Get startedGet started for free

Which levels have high turnover rate?

Turnover adversely affects efficiency, productivity, profitability and morale of the organization.

To retain the talent it becomes imperative to find out where we are losing the most. In this exercise, you will explore the turnover rate at each job level in the dataset.

Unless otherwise mentioned, all necessary packages and datasets will be loaded in your workspace going forward.

This exercise is part of the course

HR Analytics: Predicting Employee Churn in R

View Course

Exercise instructions

  • Calculate the turnover rate for each level.
  • Create a bar chart of turnover rates for each level.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Calculate level wise turnover rate
df_level <- org %>% 
  ___(level) %>% 
  ___(turnover_level = mean(turnover))

# Check the results
df_level

# Visualize the results
ggplot(df_level, aes(x = ___, y = ___)) + 
  geom_col()
Edit and Run Code