powered by
Returns a list of available variables in the PNADC microdata for a given module. This is a convenience wrapper around pnadc_dictionaries.
pnadc_dictionaries
pnadc_variables(module, year = NULL, cache_dir = NULL, refresh = FALSE)
A character vector of variable names.
Character. The module identifier (e.g., "deficiencia", "habitacao").
Numeric. Year to get variables for. Uses most recent year if 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.
if (FALSE) { # interactive() # list variables for deficiencia module pnadc_variables(module = "deficiencia", cache_dir = tempdir()) }
Run the code above in your browser using DataLab