Skip to contents

Takes 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.

Usage

pd_aux_attr(clean_data, aux_list)

Arguments

clean_data

A named list of cleaned data.table objects, as returned by pd_dlw_clean().

aux_list

A named list of auxiliary data.tables. Expected names include "cpi", "ppp", "pop", "gdp", and "pce". Typically built via lapply(measures, pipload::load_aux_data).

Value

A named list of attribute lists, one per element of clean_data, enriched with auxiliary metadata.