Description Usage Arguments Details Value Author(s)
View source: R/build_activities.R
Build an activities dataframe from the NHTS Trips dataset
1 | build_activities(trips)
|
trips |
A 'tibble' containing records from the 'nhts_trips' dataset. Must contain (at a minumum) the following columns: - 'houseid' - 'personid' - 'strttime' - 'endtime' - 'whyfrom' - 'whyto' |
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.
A 'tibble' with one row per activity for each person in the 'trips' input dataset.
Nate Lant
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.