[R] storage of lm objects in a database

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu May 13 17:16:01 CEST 2004


On Thu, 13 May 2004 Arne.Muller at aventis.com wrote:

> I'd like to use DBI to store lm objects in a database. I've to analyze
> many of linear models and I cannot store them in a single R-session (not
> enough memory). Also it'd be nice to have them persistent.
> 
> Maybe it's possible to create a compact binary representation of the
> object (the kind of format created created by "save"), so that one
> doesn't need to write a conversion routine for these objects (or maybe
> there's already a conversion available for lm?). I assume that the data
> do not need to be analyzed with a any other software than R.

?serialize.  It's exactly the "save" format.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list