Learn R Programming

ipumsr (version 0.4.5)

ipums_view: View a static webpage with variable information from a IPUMS extract

Description

Requires that htmltools, shiny and DT are installed.

Usage

ipums_view(x, out_file = NULL, launch = TRUE)

Arguments

x

A DDI or other object with ipums attributes (such as data loaded from an extract). Note that the file level information (like extract notes) are only available from the DDI.

out_file

Optionally specify a location to save HTML file. NULL the default makes a temporary file.

launch

Logical indicating whether to launch the website.

Value

The filepath to the html (silently if launch is TRUE)

Examples

Run this code
# NOT RUN {
ddi <- read_ipums_ddi(ipums_example("cps_00006.xml"))
# }
# NOT RUN {
ipums_view(ddi)
ipums_view(ddi, "codebook.html", launch = FALSE)
# }

Run the code above in your browser using DataLab