1. 学习
  2. /
  3. 项目
  4. /
  5. HR Analytics: Exploring Employee Data in R

Connected

练习

Comparing other factors by department

Another common way to think about engagement is identifying which employees are disengaged, which you'll define as having an engagement score of 1 or 2. The survey dataset doesn't have a column called disengaged, but you can create it yourself.

Then you can use your dplyr tools to summarize several variables at once.

说明 1 / 共 2 个

undefined XP
    1
    2
  • Use mutate() and ifelse() to create the disengaged variable, which equals 1 if the engagement score is 1 or 2, and 0 otherwise. Assign the result to survey_disengaged.