View source: R/download_natality_ascii.R
download_natality_ascii | R Documentation |
Fair warning: These files are very large when uncompressed. They range between 3 and 5 GB uncompressed with a compression ratio of around 90 Also, it appears the CDC rate limits downloads so I do not export this function. To use it, you'll need to use the triple colon: 'narcan:::download_natality_ascii()'.
download_natality_ascii(year, download_dir = "./raw_data", return_path = FALSE)
year |
year to download (as integer) |
download_dir |
file path to save downloaded data |
return_path |
return the path of the file that was downloaded |
Further, the unzip() function in R will not unzip files that are larger than 4GB so this needs to be unzipped using a system call or external program.
none
https://www.cdc.gov/nchs/data_access/vitalstatsonline.htm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.