ipums_website | R Documentation |
Launch the documentation webpage for a given
IPUMS project and variable. The project can be provided in the form
of an ipums_ddi
object or can be manually specified.
This provides access to more extensive variable metadata than may be
contained within an ipums_ddi
object itself.
Note that some IPUMS projects (e.g. IPUMS NHGIS) do not have
variable-specific pages. In these cases, ipums_website()
will launch the
project's main data selection page.
ipums_website(
x,
var = NULL,
launch = TRUE,
verbose = TRUE,
homepage_if_missing = FALSE,
project = deprecated(),
var_label = deprecated()
)
If launch = TRUE
, you will need a valid registration for the specified
project to successfully launch the webpage.
Not all IPUMS variables are found at webpages that exactly match the variable
names that are included in completed extract files (and ipums_ddi
objects).
Therefore, there may be some projects and variables for which
ipums_website()
will launch the page for a different variable or an
invalid page.
The URL to the IPUMS webpage for the indicated project and variable
(invisibly if launch = TRUE
)
ddi <- read_ipums_ddi(ipums_example("cps_00157.xml"))
## Not run:
# Launch webpage for particular variable
ipums_website(ddi, "MONTH")
## End(Not run)
# Can also specify an IPUMS project instead of an `ipums_ddi` object
ipums_website("IPUMS CPS", var = "RECTYPE", launch = FALSE)
# Shorthand project names from `ipums_data_collections()` are also accepted:
ipums_website("ipumsi", var = "YEAR", launch = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.