Learn R Programming

ipumsr (version 0.6.3)

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)

Value

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

Arguments

x

An ipums_ddi object or a data frame with IPUMS attributes attached.

Note that the file-level information (e.g. extract notes) are only available when providing an ipums_ddi object.

out_file

Optional location to save produced HTML file. If NULL, makes a temporary file.

launch

Logical indicating whether to launch the website.

Examples

Run this code
ddi <- read_ipums_ddi(ipums_example("cps_00157.xml"))
if (FALSE) {
ipums_view(ddi)
ipums_view(ddi, "codebook.html", launch = FALSE)
}

Run the code above in your browser using DataLab