get_microdata.RdThis function allows you to download and read ECH from INE website
get_microdata(year = NULL, folder = tempdir(), toR = TRUE)
| year | allows download data from 2011 to 2019. Default the last year |
|---|---|
| folder | Folder where are the files or be download |
| toR | write data frame in R format and delete download file and unpack files |
unrar files from INE web and the respective data frame in tibble format
Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.