[R] loading into a list

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Apr 20 16:14:00 CEST 2004


Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:

> Try .saveRDS/.readRDS which enable you to save and load unnamed objects (in
> your case list(A, B, C)).

Or, consider whether an environment wouldn't suit your purposes just as
well as a list:

e <- new.env()
load("foo.Rdata",e)
ls(e)
e$A 

..etc...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list