Skip to contents

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

data

A data.frame containing the survey data.

metadata

A survey_metadata object.

variables

A named list of design specification (varies by subclass).

groups

Character vector of active grouping variables. Set by surveytidy's group_by(). Always character(0) in standalone surveycore use.

call

The language object capturing the construction call, or NULL.