process_get_travelwaittime_by_mainmode: Calculates travel and wait time by main mode

View source: R/output_trips.R

process_get_travelwaittime_by_mainmodeR Documentation

Calculates travel and wait time by main mode

Description

The function process_get_travelwaittime_by_mainmode calculates the average travel time and average wait time for each main mode in a given trips_table tibble.

Usage

process_get_travelwaittime_by_mainmode(trips_table, time_format = "minute")

Arguments

trips_table

tibble of output_trips (from read_output_trips)

time_format

character string indicating the desired time format for the output. The options are "minute", "hour", or "second". The default is "minute".

Value

A tibble containing the columns main_mode containing the main modes, trav_time_avg containing the average travel time for each main mode, and the column wait_time_avg containing the average wait time for each main mode.


matsim-vsp/matsim-r documentation built on Feb. 3, 2025, 6:48 p.m.