Skip to contents

Helper to process and clean PUMS data dictionary from CSV for a given survey and year. Use to update codebook for missing years in tidycensus.

Usage

clean_data_dict(path, survey, year)

Arguments

path

character(1). Path to PUMS data dictionary CSV.

survey

character(1). Survey name.

year

integer. Year of PUMS data.

Value

tibble. Cleaned codebook data.

Details

  • Reads CSV, processes columns, and standardizes types and labels.

  • Returns a tibble with cleaned codebook data.

  • Assumes valid file path and schema; errors if missing.

Settings

None.

Examples

## Not run:
clean_data_dict("dict.csv", "acs5", 2020)
#> Error in clean_data_dict("dict.csv", "acs5", 2020): could not find function "clean_data_dict"
## End(Not run)