dput(x, file) dget(file)
NAs) are allowed.
dput returns
x invisibly.
dget returns the contents of
file.
dput writes an
ASCIIversion of the object onto the file. In particular, this
file is suitable for moving between computers.
If
file is missing, the value is printed on standard output.
file are performed by
dget.
Unlike
dump the result of
dput does not include the object name.
The
dput function is generic and has a method for objects of class
"formula"
.
The exact format of the object on the file is subject to change.
You should regard these files as
ASCIIversions of assignments.
Note also that exact equality of read-in numeric data cannot be guaranteed
across machines.
For large objects,
dget may use prohibitively large amounts of memory. See
data.dump
and
data.restore.
dput(abc, "oldabc") # store abc on file oldabc
def <- dget("oldabc") # read back in