Title: | Import 'REDATAM' Files |
---|---|
Description: | Import 'REDATAM' formats into R via the 'Open REDATAM' C++ library <https://github.com/litalbarkai/open-redatam> based on De Grande (2016) <https://www.jstor.org/stable/24890658>. |
Authors: | Mauricio Vargas Sepulveda [aut, cre] , Lital Barkai [aut], Ivan Krylov [ctb], Arseny Kapoulkine [ctb] ('pugixml' C++ library), Oriental Republic of Uruguay [dtc] (Aggregated census data from 2011) |
Maintainer: | Mauricio Vargas Sepulveda <[email protected]> |
License: | Apache License (>= 2) |
Version: | 2.0.4 |
Built: | 2024-11-16 03:38:06 UTC |
Source: | https://github.com/cran/redatam |
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 (Uruguay 2011, aggregated) zip <- system.file("extdata", "uru2011mini.zip", package = "redatam") dout <- paste(tempdir(), "uru2011mini", sep = "/") unzip(zip, exdir = dout) read_redatam(paste(dout, "uru2011mini.dic", sep = "/")) # or equivalently read_redatam(paste(dout, "uru2011mini.dicx", sep = "/"))
# Read a dictionary file (Uruguay 2011, aggregated) zip <- system.file("extdata", "uru2011mini.zip", package = "redatam") dout <- paste(tempdir(), "uru2011mini", sep = "/") unzip(zip, exdir = dout) read_redatam(paste(dout, "uru2011mini.dic", sep = "/")) # or equivalently read_redatam(paste(dout, "uru2011mini.dicx", sep = "/"))