Skip to content

MeTavi/summarizeNHTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"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.

Data

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.

Install

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')

Demo

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)

Extended Demo (or Vignette)

Querying the 2009 dataset

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 98.8%
  • R 1.2%