[R] reading big arrays from C

Heberto Ghezzo Heberto at meakins.lan.mcgill.ca
Thu Mar 29 20:58:23 CEST 2001


hello.
I am trying to read a big file with different sections each with a 
different format, actually it is a map in format *.e00 of MapView.
I can read the whole file with no problems from R using scan()
but it takes too long, some files are 50 meg and have to be read line 
by line to catch the section codes.
So if I do the reading from C would it be faster?
if it is, how do I manage with the vectors of values to be returned, 
now I just rbind(old, new) at each point because I do not know 
before hand how many points are there going to be.
What will you advise me to try? read 500 points say return to R 
rbind to previous , zero the array and call C again to keep on 
reading? or I can do something like rbind from C?
Thanks for any help.
.

R. Heberto Ghezzo  Ph.D.
Meakins-Christie Labs
McGill University
Montreal - Canada
heberto at meakins.lan.mcgill.ca
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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