saveas | R Documentation |
Saves an R object as name in an Rdata file called path/name.RData.
saveas(obj, name, path=".")
obj |
R object to save |
name |
character string with the new name for the R object |
path |
path for the Rdata file (saved file will be path/name.RData) |
The suffix ".RData" will be appended to the new object name to
create the file name, and the file will be written to the path
directory.
Stephanie Gogarten
getobj
x <- 1:10
path <- tempdir()
saveas(x, "myx", path)
newfile <- paste(path, "/myx", ".RData", sep="")
load(newfile) # myx now loaded
unlink(newfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.