开始使用免费开始使用

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.

本练习是课程的一部分

HR Analytics: Predicting Employee Churn in R

查看课程

练习说明

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

交互式实操练习

通过完成这段示例代码来试试这个练习。

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

# Calculate turnover rate
org %>% 
  ___(avg_turnover_rate = mean(turnover))
编辑并运行代码