Learn R Programming

healthbR (version 0.1.1)

vigitel_dictionary: Get VIGITEL variable dictionary

Description

Returns the data dictionary with variable descriptions, labels, and coding information for VIGITEL surveys.

Usage

vigitel_dictionary(force_download = FALSE, cache_dir = NULL)

Value

A tibble with variable metadata

Arguments

force_download

Logical. If TRUE, re-download the dictionary.

cache_dir

Character. Optional custom cache directory. If NULL (default), uses the standard user cache directory. Use tempdir() for temporary storage that won't persist.

Examples

Run this code
# \donttest{
# get the dictionary (uses tempdir to avoid leaving files)
dict <- vigitel_dictionary(cache_dir = tempdir())

# view column names
names(dict)
# }

Run the code above in your browser using DataLab