Skip to contents

The function process_get_mainmode_distribution calculates the distribution of main modes in a given trips_table.
It provides insights into the frequency or percentage of each main mode within the dataset.

Usage

process_get_mainmode_distribution(trips_table, percentage = FALSE)

Arguments

trips_table

tibble of output_trips (from read_output_trips)

percentage

boolean, by default FALSE, sets if output should be given as a percentage

Value

tibble of the distribution of main modes in the input trips_table.

Details

By default the function counts the occurrences of each unique main mode in the trips_table tibble and returns the counts.
Alternatively, when the percentage parameter is set to TRUE, the function normalizes the counts to represent the percentage distribution of each main mode within the data set.