You must specify a survey before the other functions, such as tab(),
will work. To convert a data.frame or similar to a survey object, see survey::svydesign()
or survey::svrepdesign().
Usage
set_survey(design, ...)
Value
info about the survey
Arguments
design
a survey object, created with survey::svydesign() or
survey::svrepdesign(). For an unweighted survey, a data.frame or similar.
...
arguments to set_opts().
Details
Optionally, the survey can have an attribute called label, which is the
long name of the survey. Optionally, each variable in the survey can have an
attribute called label, which is the variable's long name.
See Also
Other options:
set_opts(),
show_options(),
surveytable-options