Ir al contenido

Lists year, module code, name and available formats. When a copy was already downloaded and verified, it also gives its relative path, size and SHA-256.

Uso

fa_catalog(survey, years = NULL)

Argumentos

survey

Short name, for example "enaho". See fa_surveys().

years

Years to keep. NULL keeps all.

Valor

A data frame with one row per module, of class fa_catalog; summary() counts the modules of each year (see faperu-methods).

Detalles

When you ask for a year that the catalog does not have, faperu looks it up at the source the first time: on the INEI microdata portal for INEI surveys (so a year published after this version, or an old one such as ENDES 2009, still works) and in the ESCALE folder for the School Census, whose catalog only lists the latest year. That needs a connection; the modules found are kept for the session, and their series is the last part of the portal survey name.

Ejemplos

head(fa_catalog("enaho", 2024))
#> <faperu catalog: ENAHO, 6 modules, years 2024>
#>  year module name                                       formats           
#>  2024 1      Características de la Vivienda y del Hogar CSV STATA SPSS DBF
#>  2024 2      Características de los Miembros del Hogar  CSV STATA SPSS DBF
#>  2024 3      Educación                                  CSV STATA SPSS DBF
#>  2024 4      Salud                                      CSV STATA SPSS DBF
#>  2024 5      Empleo e Ingresos                          CSV STATA SPSS DBF
#>  2024 7      Gastos en Alimentos y Bebidas (Módulo 601) CSV STATA SPSS DBF