search for: mbei

Displaying 1 result from an estimated 1 matches for "mbei".

Did you mean: bei
2005 Nov 10
1
How to export multiple files using write.table in the loop?
Hi, I tried to split a big file into some small files seperately by R. I can only do that writing duplicated codes. When I tried to write a loop, I only got one appned or destroyed exported file. For example: data1<- read.table(file = "C:\\Alice\\MBEI.txt", sep="\t", check.names=FALSE) a<-subset(data1,select=c(V1,V2,V3)) write.table<-(a,file="C:\\Alice\\aa1.txt",quote=FALSE,row.names=FALSE,col.name=FALSE,sep="\t") a<-subset(data1,select=c(V1,V4,V5)) write.table(a,file="C:\\Alice\\aa2.txt",quo...