2

I have a simple R code which looks like this:

for(B in 1:length(Files)){
    InputDaten[,B]<-read.table(Files[B],header=FALSE,dec=".",skip=12,sep =     ",",colClasses=c("numeric"))
}

so I read 1.39GB of files into the memory and would like to process them. However, this takes about an hour to read. When I watch the memory space which is occupied it increases only every 10 minutes. The last two minutes result in a linear increase in the memory space in dependence of time. Why might that be? Can I make it faster?

Edit 1

InputDaten<-data.frame(c(1:15360),444)

This is how i initialised InputDaten

I used fread now, the result looks the same. Here is a screenshot of the memory usage when i started fread, the memory usage doesn't increase at all for a while. (fread started approximately at the middle of the timeframe)

http://pic-hoster.net/upload/57790/Unbenannt.png

Community
  • 1
  • 1

0 Answers0