read_all_omx: Read all matrix cores from an OMX file

View source: R/read_write_omx.R

read_all_omxR Documentation

Read all matrix cores from an OMX file

Description

Read all matrix cores from an OMX file

Usage

read_all_omx(file, names = NULL, long = TRUE)

Arguments

file

Path to OMX file

names

A character vector of matrices to read. If blank, will read all.

long

If TRUE (default) will return the matrices as a long tidy tibble with the cores as columns. If FALSE will return a list of named matrices.

Value

Depending on the value of 'long': if TRUE, a tibble with one core per column and one row per interchange; if FALSE, a list of named matrices.

Examples

omxfile <- omxr_example("skims.omx")
read_all_omx(omxfile, names = c("origin", "destination", "DIST", "DISTBIKE", "DISTWALK"))
read_all_omx(omxfile, names = c("DIST", "DISTBIKE", "DISTWALK"), long = FALSE)

  


gregmacfarlane/omxr documentation built on May 7, 2022, 11:42 a.m.