read_ipums_ddi | R Documentation |
Reads the metadata about an IPUMS extract from a DDI file into R. Includes information about variable and value labels, terms of usage for the data and positions for the fixed-width file.
read_ipums_ddi(ddi_file, data_layer = NULL, lower_vars = FALSE)
ddi_file |
Filepath to DDI xml file |
data_layer |
If ddi_file is an extract with multiple DDIs, dplyr
|
lower_vars |
Logical indicating whether to convert variable names to lowercase (default is FALSE, in line with IPUMS conventions) |
An ipums_ddi
object with metadata information.
Other ipums_metadata:
read_ipums_codebook()
# Example extract DDI ddi_file <- ipums_example("cps_00006.xml") ddi <- read_ipums_ddi(ddi_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.