[R] reading big arrays from C
Heberto at meakins.lan.mcgill.ca
Thu Mar 29 20:58:23 CEST 2001
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.
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