[R] Problem with data.frames

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Aug 4 01:45:51 CEST 2003


Andreas Eckner <andreas.eckner at soundinvest.net> writes:

> Hi,
> 
> I just encountered a problem in R that may easily be fixed: If one uses
> attach for a data.frame e.g. 10000 times and forgets detach, then R gets
> incredibly slow (less then 10% of the original speed).

R also gets incredibly slow if you create 10000 copies of your data
set, which is effectively the same thing! The fix is: Don't do that... 

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