Downloads and loads example survey data from the metasurvey data repository. This function provides access to sample datasets for testing and demonstration purposes, including ECH (Continuous Household Survey) and other survey types.
Details
This function downloads example data from the official metasurvey data repository on GitHub. The data is cached locally in a temporary file to avoid repeated downloads in the same session.
Available survey types and editions can be found at: https://github.com/metasurveyr/metasurvey_data
See also
load_survey
for loading the downloaded data
Examples
if (FALSE) { # \dontrun{
# Load ECH 2023 example data
ech_path <- load_survey_example("ech", "2023")
# Use with load_survey
ech_data <- load_survey(
path = load_survey_example("ech", "2023"),
svy_type = "ech",
svy_edition = "2023"
)
} # }