survey_subset {surveytable} | R Documentation |
Subset a survey, while preserving variable labels
Description
Subset a survey, while preserving variable labels
Usage
survey_subset(design, subset, label)
Arguments
design |
a survey object |
subset |
an expression specifying the sub-population |
label |
survey label of the newly created survey object |
Value
a new survey object
Examples
children = survey_subset(namcs2019sv, AGE < 18, "Children < 18")
set_survey(children)
tab("AGER")
[Package surveytable version 0.9.4 Index]