read_redatam {redatam}R Documentation

Read REDATAM dictionary

Description

Read a DIC or DICX dictionary file directly into R.

Usage

read_redatam(dictionary)

Arguments

dictionary

A character string with the path to the dictionary file. It allows relative paths.

Value

A list of tibbles, each one representing a table with the census entities (or levels) and their attributes (or variables).

Examples

# 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 = "/"))

[Package redatam version 2.0.0 Index]