Which department has the lowest engagement?
You and the HR analytics team have been asked to help the department with the lowest engagement score improve. The first step is to determine which department has the lowest score.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
HR Analytics: Exploring Employee Data in R
คำแนะนำการฝึกหัด
survey and dplyr are loaded in your workspace.
- Use
group_by(),summarize(), andarrange()to output a list of departments and the average engagement score for each one. - Name the average engagement score
avg_engagement. - The lowest average engagement score should be at the top of the list.
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Output the average engagement score for each department, sorted
survey %>%
___ %>%
___ %>%
___