epf.2011.gastos: Download data from the Encuesta de Presupuestos Familiares...

View source: R/epf.2011.gastos.R

epf.2011.gastosR Documentation

Download data from the Encuesta de Presupuestos Familiares (EPF)

Description

This function downloads data from the Spanish Survey of Family Budgets (Expenditure approach) using the information provided by the Spanish Statistical Office (INE).

Usage

epf.2011.gastos(file)

Arguments

file

Character string with the name of the microdata file provided by the INE on the EPF section. It allows either a path to a file, or literal data (single string or raw vector). It also allows compressed files in .gz, .bz2, .xz, or .zip format.

Details

This function reads microdata from the expenditure approach of the Survey of Family Budgets in Spain. It was originally built using the metadata for 2011 file but it may be used for later years. Previous files have a different, non compatible, format.

Value

tibble with all avaliable requested data where each row corresponds to an anonymised citizen.

Note

The file parameter allows any flat file with fixed width.

Author(s)

Diego Paniagua Sánchez and Carlos J. Gil Bellosta

References

http://www.ine.es/prodyser/microdatos.htm

See Also

read_fwf to read fixed width files.

Examples

## Not run: 
raw <- epf.2011.gastos("sample_gastos_a2011.txt")
summary(raw)

## End(Not run)

rOpenSpain/MicroDatosEs documentation built on Dec. 12, 2023, 10:47 a.m.