Lists the variables of the data files in a module, with their labels when
the file has them (SPSS and Stata). Only the file headers are read, so it
is quick even for large modules. Use it to choose cols in fa_read().
Uso
fa_variables(
survey,
year,
module,
file = NULL,
format = "auto",
series = NULL,
cache = fa_cache(),
period = NULL
)Argumentos
- survey
Short name, for example
"enaho". Seefa_surveys().- year
One year.
- module
One module code.
- file
Part of the file name to read, when the module has several data files (e.g.
"Sumaria-2024"). A regular expression.- format
"auto"uses the format of the verified copy, or else the first of STATA, SPSS, CSV and DBF that the module has. Stata comes first because it is read exactly, with labels, and quickly; INEI's CSV files can have line breaks inside text answers. You can also ask for one of those formats.- series
For sources with several series, e.g.
"panel"in ENAHO.- cache
Cache folder, see
fa_cache().- period
For sources with several files per year, the
periodshown byfa_catalog(), e.g."Anual - (Ene-Dic)"in EPEN. A regular expression.
