Skip to contents

The function process_get_travdistance_distribution calculates the distribution of travel distances based on main modes in a given trips_table tibble. It provides insights into the average distance traveled for each main mode.

Usage

process_get_travdistance_distribution(trips_table, euclidean = FALSE)

Arguments

trips_table

A tibble of output_trips (from read_output_trips)

euclidean

boolean, standard value FALSE, if set to TRUE uses euclidean distance.

Value

tibble with two columns, main_mode containing the mode and avg_dist containing the average distance traveled by that mode

Details

The distance can also be calculated by using the euclidean distance between origin and destination. To use the euclidean distance set the parameter euclidean as TRUE.