Skip to contents

GEt Country Price framework data based on PFW and DLW data info

Usage

get_country_pfw(df, pfw)

Arguments

df

data frame with micro data, loaded with pipload::pip_load_dlw()

pfw

data frame with Price framework data, loaded with pipload::pip_load_aux("pfw")

Value

list of data.tables

Examples

pfw <- pipload::pip_load_aux("pfw")
#> ! root_dir is not defined. Directory paths will lack network-drive root
#> directory
#> Error: [ENOENT] Failed to search directory '/pip_ingestion_pipeline/pc_data/cache/clean_survey_data': no such file or directory
gd   <- pipload::pip_load_dlw("CHN", 2015)
#> ! root_dir is not defined. Directory paths will lack network-drive root
#> directory
#> Error: [ENOENT] Failed to search directory '/pip_ingestion_pipeline/pc_data/cache/clean_survey_data': no such file or directory
cpfw <- get_country_pfw(gd, pfw)
#> Error in uniqueN(pfw, by = keyVar): object 'pfw' not found