
Last chance! 50% off unlimited learning
Sale ends in
An R object cannot be saved in binary mode under a different name using the default save()
function. SaveAs()
extends the save function for this option.
SaveAs(x, objectname, file, ...)
the object to save
the new name for the object.
a (writable binary-mode) connection or the name of the file where the data will be saved (when tilde expansion is done).
the dots are passed to the save function.
Andri Signorell <andri@signorell.net>
x <- stats::runif(20)
SaveAs(x=x, objectname="NewX", file = "NewXFile.rda")
unlink("NewXFile.rda")
Run the code above in your browser using DataLab