build_activities: Build an activities dataframe from the NHTS Trips dataset

Description Usage Arguments Details Value Author(s)

View source: R/build_activities.R

Description

Build an activities dataframe from the NHTS Trips dataset

Usage

1

Arguments

trips

A 'tibble' containing records from the 'nhts_trips' dataset. Must contain (at a minumum) the following columns: - 'houseid' - 'personid' - 'strttime' - 'endtime' - 'whyfrom' - 'whyto'

Details

The NHTS data does not have a start time for the travel day. This function assumes that all days will begin at 4:00 AM, though this may introduce illogical activity patterns in some situations.

Value

A 'tibble' with one row per activity for each person in the 'trips' input dataset.

Author(s)

Nate Lant


byu-transpolab/nhts2017 documentation built on Dec. 27, 2021, 9:54 a.m.