Add walk to public transport stages
Source:R/walk_to_pt_and_combine_scen.R
walk_to_pt_and_combine_scen.Rd
Adds a short walk stage to any public transport (PT) trip if required.
Details
This function performs the following steps:
create a list containing the dataframes of the synthetic trips for each scenario
if ADD_WALK_TO_PT_TRIPS == T, i.e if additional 'walk to pt' stages are to be added:
filter out all trips with a public transport stage mode
divide public transport trips into those with and without a 'walk to pt' stage
add a 'walk to pt' stage to those public transport trips without a walking stage (
add_walk_trips()
)
combine all trips from all scenarios into one dataframe
scale the stage distances and durations by calling the scale_trip_distances.R function