All survey design objects (survey_srs, survey_taylor,
survey_replicate, survey_twophase, survey_calibrated) inherit from
survey_base. This class is abstract and cannot be instantiated directly —
use as_survey(), as_survey_rep(), as_survey_twophase(), or
as_survey_calibrated() instead.
Usage
survey_base(
data = data.frame(),
metadata = survey_metadata(),
variables = list(),
groups = character(0),
call = NULL
)Properties
dataA
data.framecontaining the survey data.metadataA survey_metadata object.
variablesA named list of design specification (varies by subclass).
groupsCharacter vector of active grouping variables. Set by surveytidy's
group_by(). Alwayscharacter(0)in standalone surveycore use.callThe language object capturing the construction call, or
NULL.