powered by
Subset a survey, while preserving variable labels
survey_subset(design, subset, label)
a new survey object
a survey object
an expression specifying the sub-population
survey label of the newly created survey object
children = survey_subset(namcs2019sv, AGE < 18, "Children < 18") set_survey(children) tab("AGER")
Run the code above in your browser using DataLab