Re: [R] splitting and saving a large dataframe

2006-04-30 Thread Jean . Coursol
for( i in levels(mydata$myfactor) ) { d = mydata[mydata$myfactor==i,] write.table(d, paste('d', i, '.data', sep='') ) } Jean Coursol Quoting Dimitri Szerman [EMAIL PROTECTED]: Hi, I searched for this in the mailing list, but found no results. I have a large dataframe (

[R] splitting and saving a large dataframe

2006-04-29 Thread Dimitri Szerman
Hi, I searched for this in the mailing list, but found no results. I have a large dataframe ( dim(mydata)= 1297059 16, object.size(mydata= 145280576) ) , and I want to perform some calculations which can be done by a factor's levels, say, mydata$myfactor. So what I want is to split this