pumsr: Import fixed-width files from ipums.org directly into R

Description Usage Arguments Examples

Description

Import fixed-width files from ipums.org directly into R

Usage

1
pumsr(dat, codebook, large = FALSE, labels = FALSE)

Arguments

dat

The fixed-width data file.

codebook

The XML version of the codebook for the corresponding ipums extract.

large

Files designated as "large" are imported using the LaF and ffbase packages to avoid memory problems. Defaults to FALSE. Factor labels are currently not supported with large files.

labels

If TRUE, the labels option converts character variables to factors and attaches value labels. Defaults to FALSE.

Examples

1
ihis <- pumsr("ihis_00001.dat", "ihis_00001.xml", labels=TRUE)

elyasb/pumsr documentation built on May 8, 2019, 9:29 a.m.