read_skim_matrices: Convert time and distance skim matrices in OMX format to data...

Description Usage Arguments Details Examples

View source: R/read_skim_matrices.R

Description

Convert time and distance skim matrices in OMX format to data frame format

Usage

1
2
read_skim_matrices(distance_skimsFN = NULL, time_skimsFN = NULL,
  save_to = NULL)

Arguments

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)

Details

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.

Examples

1
2
skim_matrices <- read_skim_matrices("pmautodist.zmx", "pmautotime.zmx",
  "skim_matrices.csv")

pbsag/swimctr documentation built on May 24, 2019, 10:38 p.m.