defun2011: Download data for deaths from INE

View source: R/defun2011.R

defun2011R Documentation

Download data for deaths from INE

Description

This function downloads deaths statistcs from the Spanish Statistical Office (INE).

Usage

defun2011(file)

Arguments

file

Character string with the name of the microdata file provided by the INE on the Deaths 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 deaths microdata in Spain.

It was originally built using the metadata for the 2011 file and may work with microdata files for other yearly submissions. 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)

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 <- defun2011("datos_2016.zip") # It will be automatically uncompressed.
summary(raw)

## End(Not run)

cjgb/MicroDatosEs documentation built on Jan. 3, 2024, 10:47 p.m.