How can one save objects in Julia? One easy way to do so it to use the
JLD package. The following examples demonstrates how to save data objects in Julia and how to load the once they are saved.
# in case JLD is not installed # Pkg.add("JLD") using JLD # generate example data objects n=100 draws = rand(n) # save data by naming objects save("data.JLD","numberObs",n,"draws",draws) #load JLD file load("data.JLD") # # you loaded the objects again in # your workspace. In addition, the # the object "n" is now named "numberObs" #