Appends an additional column with the trip type to output_trips
Source:R/output_trips.R
process_append_spatialcat.Rd
Using a shape_file of the project area an additional column is created, categorizing all trips into the following categories. inside: trips that start and end inside the given shape originating: trips that start inside the shape and end outside of the shape destinating: trips that end inside the shape and start outside of the shape outside: trips that start and end outside of the shape
Arguments
- trips_table
tibble of output_trips (from read_output_trips())
- shape_table
sf object(data frame with geometries), can be created using st_read(), is used to categorize the trips.
- crs
numeric representation of the EPSG code or proj4string for the corresponding coordinate system of the trip coordinates, can be found in network file from output directory of MATSim simulation
Details
Please be aware that this process_filter_by_shape only works when a geometry is loaded.