[R] "unloading" data

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sat Oct 27 11:16:27 CEST 2001


On Fri, 26 Oct 2001, Vadim Ogranovich wrote:

> Dear R-Users,
>
> I am reading the "An Introduction to R" manual and have come across data()
> function for loading data.
>
> I assume that R requires explicit loading of data objects to save memory.
> Then I'd expect there should be a function that can unload the objects once
> they are not needed anymore, what is this function? It would be helpful if
> ?data contained a reference to that function.

rm().  Applies to any object in memory.

It's pretty rare that a data object loaded by data() would be large enough
to be material in memory usage these days, but R was originally written for
ca 2Mb systems.  If it were, one might do better to use attach/detach
(with a data file created with save).


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

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list