# NOT RUN {
omxfile <- omxr_example("skims.omx")
# long-format (tibble)
skims <- read_all_omx(omxfile, names = c("DIST", "DISTBIKE", "DISTWALK"))
write_all_omx(skims, file = tempfile(fileext = ".omx"))
# list of matrices
skims <- read_all_omx(omxfile, names = c("DIST", "DISTBIKE", "DISTWALK"), long = FALSE)
write_all_omx(skims, file = tempfile(fileext = ".omx"), long = FALSE)
# }
Run the code above in your browser using DataLab