Displaying 1 result from an estimated 1 matches for "mydatatmp".
Did you mean:
dvdatatmp
2007 Jul 17
2
poor rbind performance
Hi
I rbind data frames in a loop in a cumulative way and the performance
detriorates very quickly.
My code looks like this:
for( k in 1:N)
{
filename <- paste("/tmp/myData_",as.character(k),".txt",sep="")
myDataTmp <- read.table(filename,header=TRUE,sep=",")
if( k == 1) {
myData <- myDataTmp
}
else{
myData <- rbind(myData,myDataTmp)
}
}
Some more details:
- the size of the stored text files is about 100,000 rows and 50 columns
each
- for k=1: rbind takes...