Skip to contents

This function loads and processes survey data from a specified file path. It performs data cleaning, renaming, and standardization while allowing for the alignment of state codes.

Usage

load_survey_data(
  path,
  country_iso,
  admin_level = c("national", "adminlevel_1")
)

Arguments

path

Character. File path to the survey data file (DTA format).

country_iso

Character. ISO code of the country.

admin_level

description

Value

A tibble containing cleaned and processed survey data, with aligned state codes.