Convenience wrapper that runs the full pipeline: scrapes all CDC vital statistics sections, applies section-specific cleaning, and returns a combined lookup table of user guide and U.S. data download URLs.

build_cdc_lookup(
  url = "https://www.cdc.gov/nchs/data_access/VitalStatsOnline.htm",
  url_pdf = "https://www.cdc.gov/nchs/nvss/mortality_public_use_data.htm",
  save = FALSE,
  path = "data/lookup_final.rda"
)

Arguments

url

URL to the CDC Vital Statistics Online page. Defaults to the current CDC page.

url_pdf

URL to the CDC mortality public use data page, used to scrape mortality user guide links separately. Defaults to the current CDC page.

save

Logical. If TRUE, saves the lookup table to path as an .rda file. Defaults to FALSE.

path

File path to save the lookup table to. Only used if save = TRUE. Defaults to "data/lookup_final.rda".

Value

A tibble with 219 rows and 8 columns. See build_link_lookup for full column descriptions.