dot-download_mcod_fwf: Download the multiple cause of death data as an ASCII file...

.download_mcod_fwfR Documentation

Download the multiple cause of death data as an ASCII file from the CDC

Description

The CDC hosts publicly available multiple cause of death data as a fixed- width text file. This function downloads that file as a zip. Note that the CDC FTP is very slow–downloading from NBER via the download_mcod_dta() or download_mcod_csv() functions is strongly suggested.

Usage

.download_mcod_fwf(year, download_dir = "./raw_data")

Arguments

year

year to download (as integer)

download_dir

file path to save downloaded data

Value

none

Source

ftp://ftp.cdc.gov/pub/Health_Statistics/NCHS/Datasets/DVS/mortality/


mkiang/narcan documentation built on Sept. 26, 2024, 7:18 a.m.