ego_design function

Set and query the ego sampling design

Set and query the ego sampling design

Extract, set, remove, or update the survey design associated with an ego-centered dataset. methods

ego_design(x, ...) ## S3 method for class 'egor' ego_design(x, ...) ## S3 method for class 'nested_egor' ego_design(x, ...) ego_design(x, ...) <- value ## S3 replacement method for class 'egor' ego_design(x, ...) <- value ## S3 replacement method for class 'nested_egor' ego_design(x, ...) <- value has_ego_design(x) ## S3 method for class 'egor' has_ego_design(x) ## S3 method for class 'nested_egor' has_ego_design(x) strip_ego_design(x)

Arguments

  • x: an egor object.

  • ...: arguments to be passed to methods

  • value: a list of arguments to srvyr::as_survey_design()

    specifying the sampling design for the egos. If the arguments are formulas, they can refer to columns (ego attributes) of x. NULL clears design information.

Note

This can be useful for adjusting or re-initializing the ego design information after the underlying ego attributes had been modified.

  • Maintainer: Till Krenz
  • License: AGPL-3
  • Last published: 2024-02-02

Downloads (last 30 days):