[R] Use a list to 'transport' a collection of data sets and results

Dieter Menne dieter.menne at menne-biomed.de
Wed Jul 27 14:07:20 CEST 2011


christiaan pauw-2 wrote:
> 
> Hi Everybody
> 
> Is it possible to store a collection of variables of different types (like
> named integers, matricies, data frames and two lists) all in one list and
> save it and then simply load it again later and "unpack" the variables.
> 
> 

The easy way out is not to pack them from the beginning.

save(a,b,c,d,e,f, file=.)

I use this frequently to cache temporary results for Sweave (yes, I know
there are automatic packages for that, but I prefer the manual way)

And loading can be done into an environment to avoid pollution.

Dieter



--
View this message in context: http://r.789695.n4.nabble.com/Use-a-list-to-transport-a-collection-of-data-sets-and-results-tp3698087p3698260.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list