View source: R/read_write_omx.R
read_all_omx | R Documentation |
Read all matrix cores from an OMX file
read_all_omx(file, names = NULL, long = TRUE)
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. |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.