powered by
Returns a list of available variables in the POF microdata with their labels. This is a convenience wrapper around pof_dictionary that returns a simplified view.
pof_dictionary
pof_variables( year = "2017-2018", register = NULL, search = NULL, cache_dir = NULL, refresh = FALSE )
A tibble with columns: variable, description, position, length, register.
Character. POF edition (e.g., "2017-2018"). Default is "2017-2018".
Character. Register name (e.g., "morador", "domicilio"). If NULL, returns variables from all registers. Default is NULL.
Character. Optional search term to filter variables by name or description. 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_dictionary, pof_data
pof_data
Other pof: pof_cache_status(), pof_clear_cache(), pof_data(), pof_dictionary(), pof_info(), pof_registers(), pof_years()
pof_cache_status()
pof_clear_cache()
pof_data()
pof_dictionary()
pof_info()
pof_registers()
pof_years()
if (FALSE) { # interactive() pof_variables("2017-2018", "morador", cache_dir = tempdir()) pof_variables("2017-2018", "domicilio", search = "ebia", cache_dir = tempdir()) }
Run the code above in your browser using DataLab