Adds additional dist_cat column based on the distances_array parameter
Source:R/output_trips.R
process_append_distcat.Rd
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".
Usage
process_append_distcat(
trips_table,
distances_array = c(1000, 2000, 5000, 10000, 20000, 50000, 1e+05)
)
Arguments
- 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)