Skip to contents

Creates an origin/destination matrix either in conventional form (row names = origin, column names = destination) or for simwrapper (origin and destination as columns)

Usage

process_get_od_matrix(
  trips_table,
  shape_path,
  crs,
  dump.output.to = matsimDumpOutputDirectory,
  simwrapper = FALSE,
  colnames = "numeric",
  outer = FALSE
)

Arguments

trips_table

tibble of trips_output (from read_output_trips)

shape_path

string, full path to the shapefile (.shp) (shape files are made up of several files with the same name and the folder also needs to include a .dbf file)

crs

numeric, coordinate system in the form of the EPSG code or proj4string, can be found in the MATSim network file

dump.output.to

string, path to a folder to save the .csv file

simwrapper

boolean, creates output in the format used for simwrapper if the path for the shapefile is specified

colnames

string, column names can be specified (i.e. to fit the shape file), if not they are numbered

outer

boolean, determines if flows outside of the shapefile are used, standard value is FALSE

Value

tibble of origin/destination matrix