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 (
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