## Not run:
# # Function call to create databank offset file0
# file0 <- read.file0("emme2/emme2ban")
#
# #Function call to create file1 info (global parameters)
# file1 <- read.file1("emme2/emme2ban", file0)
#
# #Function call to read matrix directory
# mat.dir <- read.matdir("emme2/emme2ban", file0, file1$global["mmat"])
#
# #Function call to read all ms from databank
# ms <- read.ms("emme2/emme2ban", file0)
#
# #Function call to read mo2
# mo2 <- read.mo(2, "emme2/emme2ban", file0, file1$global["mcent"], mat.dir)
#
# #Function call to read md2
# md2 <- read.md(2, "emme2/emme2ban", file0, file1$global["mcent"], mat.dir)
#
# #Function call to read mf2
# mf2 <- read.mf(2, "emme2/emme2ban", file0, file1$global["mcent"], mat.dir)
#
# #Function call to read mf "opskim"
# mf2 <- read.mf("opskim", "emme2/emme2ban", file0, file1$global["mcent"], mat.dir)
# mf2 <- mf2[zonesUsed,zonesUsed] #To crop the padded default values
#
# #Function call to write mf2
# x <- matrix(rnorm(mf2), nrow(mf2), ncol(mf2)) #Random generate length(mf) numbers to write dummy data to bank
# x <- formatMf(x, file1) #Append the padded default values to the matrix
# write.mf(x, 2, "emme2/emme2ban", file0, file1$global["mcent"], file1$global["mmat"], mat.dir, newname="test", newdesc="test matrix")
#
# #Function call to read link data
# link.data <- read.link.data("emme2/emme2ban", 1, file0, file1$global["mscen"], file1$global["mlink"], file1$global["mnode"])
#
# #Function call to create from to node link table
# tofrom <- ftnode(link.data[[1]], link.data[[2]], link.data[[3]], file1$global["mlink"])
#
# #Function call to create node table
# nodes <- read.nodes("emme2/emme2ban", 1, file0, file1$global["mscen"], file1$global["mlink"], file1$global["mnode"])
#
# #Function call to plot network
# plotLinks(tofrom, nodes, "Network")
#
# #Function call to format a mf to write to the databank
# mf2 <- formatMf(mf2, file1)
#
# #Convenience function to get a directory of a databank
# dir.df <- MFDir("emme2/emme2ban")
#
# #Convenience function to fetch and format an mf as a long data.frame
# mf.df <- MFFetch("emme2/emme2ban", "aau1tm", varlongname="my.descriptive.var.name")
#
# #Convenience function to fetch, format, and merge multiple mf as a long data.frame
# mmf.df <- MFBatchFetch("emme2/emme2ban", c("aau1tm", "aau2tm"))
# ## End(Not run)
Run the code above in your browser using DataLab