For years where the CDC hosts multiple PDFs on a dedicated page rather than a single user guide (currently 1997 and 1998), this function scrapes the Detail Record Layout PDF link specifically, as that is the file needed to parse the fixed-width data files.

scrape_mortality_user_guide_specific(url, year)

Arguments

url

URL to the year-specific CDC mortality documentation page.

year

Integer. The data year corresponding to the page.

Value

A single-row tibble with columns: section, subsection, link_text, year, file_size, url, file_type, file_size_mb.