"An open-source, survey-specific toolkit capable of processing weighted data, computing common statistics and errors, and producing interactive web visualizations will increase transparency in analyses, eliminate common technical stumbling blocks, and ultimately attract more interest to these powerful datasets." - summarizeNHTS Team
To read more about the National Household Travel Survey, visit this documentation page.
This package handles the downloading, organizing, and loading of NHTS datasets for you. It reads directly from the Oak Ridge National Laboratory NHTS data page, and currently supports the 2001 and 2009 studies. The 2017 study will be immediately supported once the data is released.
We recommend using RStudio Desktop to develop analyses with this package. Your computer should have at least 8GB of memory and a recent 64 bit version of R. Reference the install readme for specific instructions.
install.packages('devtools')
devtools::install_github('Westat-Transportation/summarizeNHTS')
library(summarizeNHTS)
download_nhts_data("2009", exdir="C:/NHTS")
dataset <- read_data("2009", csv_path="C:/NHTS")
statistic <- summarize_data(
data = dataset,
agg = "household_count",
label = TRUE,
by = c("HHSIZE","HHVEHCNT")
)
make_chart(statistic)