Build auxiliary metadata attributes for cleaned survey data
pd_aux_attr.RdTakes the list of cleaned survey data.tables and a named list of auxiliary datasets (CPI, PPP, population, GDP, PCE). For each cleaned data.table, it extracts existing attributes and appends the matching auxiliary values (filtered by country, year, and survey). The result is a list of attribute lists suitable for saving as survey metadata.
Arguments
- clean_data
A named list of cleaned
data.tableobjects, as returned bypd_dlw_clean().- aux_list
A named list of auxiliary data.tables. Expected names include
"cpi","ppp","pop","gdp", and"pce". Typically built vialapply(measures, pipload::load_aux_data).
Value
A named list of attribute lists, one per element of
clean_data, enriched with auxiliary metadata.
See also
Other pd_process_data pipeline:
add_attr(),
aux_hash_candidates(),
build_pip_inventory(),
create_attr(),
data_to_dt(),
filter_aux_data(),
filter_aux_inv(),
fix_year_var(),
get_aux_hashes(),
inv_dlw_load(),
inv_to_process(),
log_report(),
pd_deflation(),
save_pip_data(),
survey_id_to_attr(),
valid_dlw_load()