Description Usage Arguments Details Examples
Convert time and distance skim matrices in OMX format to data frame format
1 2 | read_skim_matrices(distance_skimsFN = NULL, time_skimsFN = NULL,
save_to = NULL)
|
distance_skimsFN |
Fully-qualified filename of distance skim matrix in ZMX format |
time_skimsFN |
Fully-qualified filename of travel time skim matrix in ZMX format |
save_to |
Filename for saving the combined skim matrix file in comma- separated value format (optional) |
This function reads distance and travel time skim matrices stored in compressed matrix format (zmx) used by the SWIM system, combines them into a single data frame, and returns the result. The function does not assume that the dimensionality is the same, so as to not use column joins that might not properly align. Instead, the more inefficient but safer method of matching the two by origin and destination zone numbers are used, with missing values inserted for when a zone pair appears in one file but not the other. The results can optionally be stored in a comma-separated value file if desired.
1 2 | skim_matrices <- read_skim_matrices("pmautodist.zmx", "pmautotime.zmx",
"skim_matrices.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.