process_append_distcat | R Documentation |
Categorizes each trip into a distance bin based on traveled distance. E.g. the distance traveled is 1500, distances_array is (1000,2000), then the category is "1000-2000".
process_append_distcat(
trips_table,
distances_array = c(1000, 2000, 5000, 10000, 20000, 50000, 1e+05)
)
trips_table |
tibble of output_trips (from read_output_trips) |
distances_array |
numeric vector, contains ordered distance segments (in meters), standard value: c(1000,2000,5000,10000,20000,50000,100000) |
tibble, containing the added column dist_cat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.