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.
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
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.