loadObject {galgo} | R Documentation |
Load the data from a file into the .GlobalEnv
(or any other enviroment). If variables were converted to a list using unObject
, this variables are converted to original object using reObject
method.
loadObject(file, envir)
file |
The file to load. |
envir |
The environment to load the data. The default is .GlobalEnv . |
verbose |
Displays progress. |
reobjectize |
Specify if reObject method should be called. Defaults to TRUE. |
compatibilize |
Compatibilze chromosomes built on previous versions. |
Load the data from a file into the .GlobalEnv
(or any other enviroment). If variables were converted to a list using unObject
, this variables are converted to original object using reObject
method.
A data frame with variable names and class of loaded objects.
It could take some seconds for large and/or complex objects/files.
Victor Trevino
library(R.oo) # needed library o <- Object() o$x = 1 o$y = 2 o$x o$y o class(o) names(o) uo <- unObject(o) uo class(uo) save(uo, file="uo.Rdata") ### perhaps other session here library(R.oo) loadObject("uo.Rdata") uo class(uo) # the class is the original from the original object (o in this case) ### equivalent to: library(R.oo) load("uo.Rdata") uo <- reObject(uo) uo class(uo)