Description Usage Arguments Details Examples
Temporal allocation for individual trip records
1 | trip_temporal_allocation(daily_trips, temporal_distributions)
|
daily_trips |
Data frame containing the daily trip records |
temporal_distributions |
Data frame containing the hourly shares for trip starting times for each vehicle type defined in the simulation |
This function samples starting (departure) hour for each record in a trip list. Hourly shares must be specified for each vehicle type defined in the 'temporal_distributions' data frame. The function does not ensure that all 24 hours in a day are defined, or even that values from 0-23 are required. However, at least one record for each vehicle type must be present. The resulting data frame adds 'start_hour', 'period', and 'matrix' identifier to each record in the 'daily_trips' data frame.
1 2 | add_start_hour <- trip_temporal_allocation(daily_truck_trips,
observed_temporal_distributions)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.