loadObject {R.utils}R Documentation

Method to load object from a file or a connection

Description

Method to load object from a file or a connection, which previously have been saved using saveObject().

Usage

## Default S3 method:
loadObject(file, path=NULL, ...)

Arguments

file A filename or connection to read the object from.
path The path where the file exists.
... Not used.

Details

The main difference from this method and load() in the base package, is that this one returns the object read rather than storing it in the global environment by its default name. This makes it possible to load objects back using any variable name.

Value

Returns the save object.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

saveObject() to save an object to file. Internally load() is used. See also loadToEnv().


[Package R.utils version 1.1.7 Index]