ComenzarEmpieza gratis

What proportion of employees have left?

As an Analyst, one of the first things you would want to know is what proportion of employees have left the organization. In this exercise, you will do just that by counting the number of Active and Inactive employees in your dataset (available in the status column).

The dataset (org) you imported in the previous exercise along with the dplyr package are loaded in your workspace.

Este ejercicio forma parte del curso

HR Analytics: Predicting Employee Churn in R

Ver curso

Instrucciones del ejercicio

  • Count the number of Active and Inactive employees in the dataset.
  • Calculate the turnover rate (mean turnover).

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Count Active and Inactive employees
org %>% 
  ___(status)

# Calculate turnover rate
org %>% 
  ___(avg_turnover_rate = mean(turnover))
Editar y ejecutar código