survey (version 1.9-2)

update.survey.design: Add variables to a survey design

Description

Update the data variables in a survey design, either with a formula for a new set of variables or with an expression for variables to be added.

Usage

update.survey.design(object, vars = ~., ...)

Arguments

object
a survey.design object
vars
A formula or quoted expression. See Details below
...
Other variables not used by this method

Value

  • A survey.design object

Details

Variables in the formula or expression are looked up first in the current variables data frame and then in the calling frame.

A formula should typically have a . on the right-hand side to indicate that the current variables are to be retained. When vars is an expression the current variables are automatically retained.

See Also

svydesign