PIP-Technical-Team / pipdm

What the Package Does (One Line, Title Case)
https://pip-technical-team.github.io/pipdm/
Other
0 stars 0 forks source link

Add and recode variables to simply pipapi::clean_api_data() #78

Closed Aeilert closed 3 years ago

Aeilert commented 3 years ago

E.g.

# pop region names 
  pop_region <- fst::read_fst(paste0(data_folder_root, "/_aux/pop-region.fst")) %>%
    data.table::setnames(c('year', 'pop'), c('reporting_year','reporting_pop'))

# interpolation_id 
  ref_lkup <- ref_lkup %>%
    base::transform(
      interpolation_id = paste(country_code, reporting_year, pop_data_level, sep = "_")
    )