load {base} | R Documentation |
Reload the datasets written to a file with the function save
.
load(file, envir = parent.frame())
file |
a connection or a character string giving the name of the file to load. |
envir |
the environment where the data should be loaded. |
save
.
## save all data
save(list = ls(), file= "all.Rdata")
## restore the saved values to the current environment
load("all.Rdata")
## restore the saved values to the workspace
load("all.Rdata", .GlobalEnv)