saveObject {R.utils} | R Documentation |
Saves an object to a file or a connection.
## Default S3 method: saveObject(object, file=NULL, path=NULL, compress=TRUE, ...)
object |
The object to be saved. |
file |
A filename or connection where the object should be saved.
If NULL , the filename will be the hash code of the object plus ".xdr". |
path |
Optional path, if file is a filename. |
compress |
If TRUE , the file is compressed to, otherwise not. |
... |
Other arguments accepted by save() in the base package. |
Returns (invisibly) the pathname or the connection
.
Henrik Bengtsson (http://www.braju.com/R/)
loadObject
() to load an object from file.
digest
for how hash codes are calculated from an object.