Learn R Programming

omxr (version 0.3.3)

read_all_omx: 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

Run this code
# NOT RUN {
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)

  

# }

Run the code above in your browser using DataLab