Learn R Programming

MicroDatosEs (version 0.8.15)

padron2016: Download data from the "Padrón"

Description

This function downloads data from the Spanish "padrón" using the information provided by the Spanish Statistical Office (INE).

Usage

padron2016(file)

Value

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

Arguments

file

Character string with the name of the microdata file provided by the INE on the Padrón 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.

Author

Carlos J. Gil Bellosta; metadata provided by Fiorella Mori.

Details

This function reads microdata from the members approach of the "Padrón" in Spain. It was originally built using the metadata for 2016 file but it may be used for later years. Previous files have a different, non compatible, format.

References

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

See Also

read_fwf to read fixed width files.

Examples

Run this code
if (FALSE) {
raw <- epf.2011.gastos("sample_padron_2016.txt")
summary(raw)
}

Run the code above in your browser using DataLab