Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

HR Analytics: Predicting Employee Churn in R

Cursus bekijken

Oefeninstructies

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

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# 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()
Code bewerken en uitvoeren