powered by
Downloads and returns the variable dictionary for POF microdata. The dictionary is cached locally to avoid repeated downloads.
pof_dictionary( year = "2017-2018", register = NULL, cache_dir = NULL, refresh = FALSE )
A tibble with variable definitions including: variable, description, position, length, decimals, register.
Character. POF edition (e.g., "2017-2018"). Default is "2017-2018".
Character. Register name. If NULL, returns all registers. Default is NULL.
Character. Directory for caching downloaded files. Default uses tools::R_user_dir("healthbR", "cache").
tools::R_user_dir("healthbR", "cache")
Logical. If TRUE, re-download even if file exists in cache. Default is FALSE.
pof_variables, pof_data
pof_variables
pof_data
Other pof: pof_cache_status(), pof_clear_cache(), pof_data(), pof_info(), pof_registers(), pof_variables(), pof_years()
pof_cache_status()
pof_clear_cache()
pof_data()
pof_info()
pof_registers()
pof_variables()
pof_years()
if (FALSE) { # interactive() pof_dictionary("2017-2018", "morador", cache_dir = tempdir()) }
Run the code above in your browser using DataLab