[R] Memory management

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Aug 30 11:28:49 CEST 2000


"Charles Raux" <Charles.Raux at let.ish-lyon.cnrs.fr> writes:

> Some naive questions:
> 1) How to remove a column in a data frame? I expected that rm would
> work but this is not the case (e.g. rm(dat$yyy) gives Warning
> message: remove: variable dat$yyy was not found). I only found to
> assign NULL value (e.g.: dat$yyy<-NULL). Is it the right way?
> 2) Is the place formerly occupied by dat$yyy automatically gained by
> R for other uses?
> 3) If t1 and t2 are 2 only existing objects in a R session: does
> t1<-t2 automatically free the space formerly occupied by t1 ? Do I
> get an exact copy of t2, that is the total memory taken is twice that
> of t2.

Yes, yes, yes, and yes....

-- 
   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
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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