शुरू करेंमुफ़्त में शुरू करें

Performing 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.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Sampling in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Get unique JobRole values
job_roles_pop <- ___

# Randomly sample four JobRole values
job_roles_samp <- ___

# See the result
job_roles_samp
कोड संपादित करें और चलाएँ