[R] persiting complex R objects

Sean Davis sdavis2 at mail.nih.gov
Mon Sep 20 13:15:39 CEST 2004


Richard,

Check out ?save and ?load.  You were correct on those.  Do you have
questions about "create"?  If so, you will probably have to be more
specific.

Sean

----- Original Message -----
From: "Richard Mott" <rmott at well.ox.ac.uk>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, September 20, 2004 7:00 AM
Subject: [R] persiting complex R objects


> Is there a method to save a large and complex R object (either as a
> binary or text file) so that it can be loaded and reused at a later
> time? Specifically, I am creating large lists (several thousand
> elements), each element of which is either a vector or a matrix (with ~
> 2000 rows). The dimensions of the matrices are not all the same. My
> ideal would be a set of functions of the form
>
> obj <- create() # computes  the object
> save(obj,filename)
> obj <- load(filename)
>
> --
> ----------------------------------------------------
> Richard Mott       | Wellcome Trust Centre
> tel 01865 287588   | for Human Genetics
> fax 01865 287697   | Roosevelt Drive, Oxford OX3 7BN
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list