[R] Re: [Rd] creating models from "Objects" in R's environment
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Thu Jun 8 21:32:46 CEST 2000
On Thu, 8 Jun 2000, Cheryl J Fernandes wrote:
> I'm trying to create Tree based models in R using the downloadable
> package called "tree".
> It is mentioned in the R documentation that Objects are created and
> stored in the R environment by name.
> So I have saved all the objects formed during the creation of a tree model
> using the R command:
> Here's a snapshot of the output file outputTree.txt:
> After creating the models, one needs to analyse them with some new data.
> Hence, I am now trying to analyze this model with a new set of data.
> Is it possible in R to recreate the models by reading from the "Object"
> output file.
Eveything is possible in R: you can program a Turing machine in it
but you might need unlimited memory.
> ie By reading from the above displayed file, can we recreate the tree
> model ??
Yes, but to fit the *formula* to a new dataset (hence a *new* model) you
will need to use update.
I suggest you use save() not dump() to store objects.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help