Session Ready
Exercise

Cluster sampling

Now that you know when to use cluster sampling, it's time to put it into action. In this exercise you'll explore the JobRole column of the attrition dataset. You can think of each job role as a subgroup of the whole population of employees.

attrition_pop is available; dplyr is loaded.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Get the unique JobRole values from attrition_pop.
  • Randomly sample four JobRole values from job_roles_pop.