Displaying 1 result from an estimated 1 matches for "mydata_".
Did you mean:
mydata
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...