process_get_mainmode_distribution | R Documentation |
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.
process_get_mainmode_distribution(trips_table, percentage = FALSE)
trips_table |
tibble of output_trips (from read_output_trips) |
percentage |
boolean, by default FALSE, sets if output should be given as a percentage |
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.
tibble of the distribution of main modes in the input trips_table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.