Description Usage Arguments Details Examples
View source: R/download_nhts_data.R
Download public use NHTS datasets from the web.
1 | download_nhts_data(dataset, exdir = getwd())
|
dataset |
The study year of the dataset to download. Currently either '2001', '2009', or '2017'. |
exdir |
The directory to house the data. Defaults to working directory. |
We recommend that you first create an RStudio Project. This will ensure that the data is downloaded under your project directory and will be helpful for future package utilization. Note: A "/csv/dataset/" directory will always be created under exdir for organizational purposes.
1 2 | # Download the 2009 NHTS data to specified directory:
download_nhts_data("2009", "C:/NHTS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.