saving an object
Alternatively you can use saveObject() and loadObject() of R.utils -
that will not hardwire the name of the loaded object avoiding name
conflicts, e.g.
library("R.utils");
foo <- 1:10;
saveObject(foo, file="foo.RData");
bar <- loadObject("foo.RData");
/HB
On Thu, Sep 4, 2008 at 8:44 AM, Williams, Robin
<robin.williams at metoffice.gov.uk> wrote:
?save I assume you can connect to it from within the script, presumably by supplying the path of the object to the appropriate argument in your script. I'm no expert though. HTH, Robin Williams Met Office summer intern - Health Forecasting robin.williams at metoffice.gov.uk -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Rajasekaramya Sent: Thursday, September 04, 2008 4:36 PM To: r-help at r-project.org Subject: [R] saving an object Hi there, I have a dataset stored in an object which has very huge volume of rows.I want to reuse it for comparing with other datasets.I dont want it to reload every time i run the script.Is there a way of saving a particular loaded object in the workspace and reusing it. Kindly help me. Ramya Thulasingam -- View this message in context: http://www.nabble.com/saving-an-object-tp19313276p19313276.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.