Returns a list of available variables in the PNS microdata with their labels.
This is a convenience wrapper around pns_dictionary that
returns only unique variable names and labels.
Arguments
- year
Numeric. Year to get variables for (2013 or 2019). Default is 2019.
- module
Character. Filter by module code (e.g., "J", "K", "L"). NULL returns all modules. Default is NULL.
- cache_dir
Character. Directory for caching downloaded files. Default uses
tools::R_user_dir("healthbR", "cache").- refresh
Logical. If TRUE, re-download even if file exists in cache. Default is FALSE.