# We are going to pretend that the workplace sample is our population.
head(workplace)
# The population size is N = 142. We want to draw a pps sample (without
# replacement) of size n = 10, where the variable employment is the measure of
# size. The first-order sample inclusion probabilities are calculated as
# follows
p <- pps_probabilities(workplace$employment, n = 10)
# Now, we draw a pps sample using Brewer's method.
pps_draw(p, method = "brewer")
Run the code above in your browser using DataLab