download_nhts_data: Download NHTS datasets.

Description Usage Arguments Details Examples

View source: R/download_nhts_data.R

Description

Download public use NHTS datasets from the web.

Usage

1
download_nhts_data(dataset, exdir = getwd())

Arguments

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.

Details

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.

Examples

1
2
# Download the 2009 NHTS data to specified directory:
download_nhts_data("2009", "C:/NHTS")

Westat-Transportation/summarizeNHTS documentation built on May 17, 2020, 8:57 p.m.