A full pipeline wrapper that downloads, reads, and decodes a CDC vital statistics dataset in a single call. Automatically resolves the download URL and metadata for the given section and year.

cdc_import(section, year)

Arguments

section

A string identifying the data section, e.g. "mortality_multiple".

year

An integer or numeric year, e.g. 1969.

Value

A fully decoded tibble with all columns in metadata order and coded values replaced by human-readable labels.

Examples

if (FALSE) { # \dontrun{
mort1969 <- cdc_import("mortality_multiple", 1969)
} # }