Learn R Programming

healthbR (version 0.1.1)

vigitel_variables: List VIGITEL variables

Description

Returns a character vector of variable names available in a VIGITEL survey year.

Usage

vigitel_variables(year, cache_dir = NULL)

Value

A character vector of variable names

Arguments

year

Integer. Year of the survey.

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{
# list variables for 2023 (uses tempdir to avoid leaving files)
vigitel_variables(2023, cache_dir = tempdir())
# }

Run the code above in your browser using DataLab