RE: [R] How to add an object to an RData file ?

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Thu 29 Jul 2004 - 05:07:41 EST

On Wed, 28 Jul 2004, Liaw, Andy wrote:

> I guess it would be nice if save() has an `append' option...

It would still have to read it in and out again, and then we would have all the issues about multiple objects with the same name.

        -thomas

>
> Andy
>
> > From: Roger D. Peng
> >
> > I can't think of a faster way.
> >
> > -roger
> >
> > Ernesto Jardim wrote:
> > > Hi,
> > >
> > > I've saved an RData file with "save" and now I want to add
> > a new object
> > > to this file. At the moment I do:
> > >
> > > attach("file.RData")
> > > save(list=c("new,obj", ls(pos=2)), file="file.RData", compress=T)
> > > detach()
> > >
> > > Is there a quicker method that just add the object to the file ?
> > >
> > > Thanks
> > >
> > > EJ
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 29 05:14:58 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:40:56 EST