Description Usage Arguments Details Examples
Sample destinations for trips in local truck tours
1 2 3 | sample_local_destinations(truck_origins, skim_distances,
trip_length_targets, max_distance = 120, allow_intrazonals = TRUE,
debug_tracing = FALSE)
|
truck_origins |
Data frame containing discrete trip records with origin zones annotated |
skim_distances |
Data frame containing distances between each IDSTM_TAZ combination |
trip_length_targets |
Data frame containing observed or asserted trip length frequencies or probabilities by distance for each truck type in the simulation |
max_distance |
The maximum distance that a local trip will travel to reach a discrete destination (default = 120 miles) |
allow_intrazonals |
A flag to indicate whether intrazonal trips will be included in the data (default = TRUE) |
debug_tracing |
A flag to indicate whether tracing statements for each origin and truck type combination are printed (default = FALSE) |
This function carries out a singly-constrained destination choice, where the utility of each destination can be varied between distance and size term. The resulting tibble mirrors the input trip list with the addition of the destination.
1 2 | add_destinations <- sample_local_destinations(trip_records, skim_matrix,
trip_length_targets)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.