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

View source: R/viewer.r

ipums_viewR Documentation

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

ddi <- read_ipums_ddi(ipums_example("cps_00006.xml"))
## Not run: 
ipums_view(ddi)
ipums_view(ddi, "codebook.html", launch = FALSE)

## End(Not run)

mnpopcenter/ipumsr documentation built on Sept. 30, 2022, 6:56 a.m.