Many thanks to Edna and Roland. I followed the suggestions, and it worked well.
Regards, Dong On 7/30/07, Edna Bell <[EMAIL PROTECTED]> wrote: > > > #Original 3x4x2 array > > xb > , , 1 > > [,1] [,2] [,3] [,4] > [1,] 0.4 0.9 5.6 0.1 > [2,] 0.3 2.3 3.3 0.7 > [3,] 0.6 0.8 0.2 0.7 > > , , 2 > > [,1] [,2] [,3] [,4] > [1,] 0.4 0.9 5.6 0.1 > [2,] 0.3 2.3 3.3 0.7 > [3,] 0.6 0.8 0.2 0.7 > > > for(i in 1:2) { > + write(file="stuff4",t(xb[,,i]),ncol=4,append=T) > + xx <- paste("end of array ",i,sep="") > + write(file="stuff4",xx,append=T) > + } > > file.show("stuff4") > > #All is well > > > > > On 7/29/07, Dong GUO ¹ù¶« <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I want to save a array (say, array[6,7,8]) write a cvs file. How can I > do > > that??? can I write in one file? > > > > if I could not write in one file, i want to use a loop to save in > different > > files (in the matrix[6,7,8], should be 8 csv files), such as the > filename > > structure should be: file ="filename" +str(i) +"." +"csv" > > > > Many thanks. > > Dong > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help@stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > [[alternative HTML version deleted]]
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.