ipums_website {ipumsr} | R Documentation |
Launch a browser window to an IPUMS metadata page
Description
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.
Usage
ipums_website(
x,
var = NULL,
launch = TRUE,
verbose = TRUE,
homepage_if_missing = FALSE,
project = deprecated(),
var_label = deprecated()
)
Arguments
x |
An |
var |
Name of the variable to load. If |
launch |
If |
verbose |
If |
homepage_if_missing |
If |
project |
|
var_label |
Variable label for the
provided |
Details
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.
Value
The URL to the IPUMS webpage for the indicated project and variable
(invisibly if launch = TRUE
)
Examples
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)