[R] R 1.4.0 much slower than R 1.3.1

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Jan 17 01:47:32 CET 2002


Robin Hankin <r.hankin at auckland.ac.nz> writes:

> R-1.3.1:
> > system.time(a <- read.table("~/people/academics/mitchell/nzsl02.27",header=T))
> [1] 40.86  0.51 54.10  0.00  0.00

> R-1.4.0:
> > system.time(a <- read.table("~/people/academics/mitchell/nzsl02.27",header=T))
> [1] 293.24  30.76 478.35   0.00   0.00
> 
> The dataset in question is big ( 75306 x 27) but not desperately so.
> Am I doing something stupid here?

No. R is. This has been reported before and should be fixed in the
current patch set.

A temporary fix would seem to be to make sure that while (nlines < 5)
loop near the start of read.table actually increments nlines in its
body...

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