Skip to contents

Load survey

Usage

load_survey(
  path = NULL,
  svy_type = NULL,
  svy_edition = NULL,
  svy_weight = NULL,
  ...
)

Arguments

path

Path to the survey file

svy_type

Type of survey

svy_edition

Edition of the survey

svy_weight

Weight of the survey

...

Additional arguments

Value

Survey object

Examples

set_engine("data.table")
#> Engine: data.table
svy_example <- load_survey(
  svy_type = "eaii",
  svy_edition = "2019-2021",
  svy_weight = "w_trans",
  input = "https://raw.githubusercontent.com/metasurveyr/metasurvey_data/main/eaii/2019-2021.csv",
  dec = ","
)
svy_example
#> ℹ️  Type: eaii
#> 💹 Edition: 2019-2021
#> 🖥️  Engine: data.table
#> 🧮 Design: 
#>     * Type: 
#>       * Package: survey
#>       * Variance estimation: Ultimate cluster
#>     * PSU: ~1
#>     * Strata: NULL
#>     * Weight: w_trans
#>     * FPC: NULL
#>     * Calibrate formula: ~1
#> 🔍 Steps: None
#> 🧁 Recipes: None