Title: | Import 'REDATAM' Files |
---|---|
Description: | Import 'REDATAM' files into R. 'REDATAM' is a software for the manipulation of microdata from censuses and surveys. This package provides functions to import 'REDATAM' files into R. It is based on De Grande (2016) <https://www.jstor.org/stable/24890658>. |
Authors: | Mauricio Vargas Sepulveda [aut, cre] , Lital Barkai [aut], Arseny Kapoulkine [ctb] ('pugixml' C++ library), Republic of Ecuador [dtc] (Galapagos census data) |
Maintainer: | Mauricio Vargas Sepulveda <[email protected]> |
License: | Apache License (>= 2) |
Version: | 2.0.0 |
Built: | 2024-10-22 07:27:08 UTC |
Source: | CRAN |
Read a DIC or DICX dictionary file directly into R.
read_redatam(dictionary)
read_redatam(dictionary)
dictionary |
A character string with the path to the dictionary file. It allows relative paths. |
A list of tibbles, each one representing a table with the census entities (or levels) and their attributes (or variables).
# Read a dictionary file (Galapagos 2015) zip <- system.file("extdata", "galapagos.zip", package = "redatam") dout <- paste(tempdir(), "galapagos", sep = "/") unzip(zip, exdir = dout) read_redatam(paste(dout, "cg15.dic", sep = "/"))
# Read a dictionary file (Galapagos 2015) zip <- system.file("extdata", "galapagos.zip", package = "redatam") dout <- paste(tempdir(), "galapagos", sep = "/") unzip(zip, exdir = dout) read_redatam(paste(dout, "cg15.dic", sep = "/"))