[R] how to export data in the order

Nongluck Klibbua Nongluck.Klibbua at newcastle.edu.au
Thu May 19 05:10:29 CEST 2005


hi all,
My data is y[j,k] where j=1,...5, k=1,....,10 and when I use
cat(y,file="c:data.txt",sep="\n"). The data is coming out into the
data.txt is 
y[1,1],y[2,1],....,y[5,1],y[2,1],y[2,2],....,y[5,2],.....,y[j,k]. How I
can export the data by my data is
y[1,1],y[1,2],...y[1,5],y[2,1],[2,2],.....y[j,k].
Appreciate your time.
nongluck




More information about the R-help mailing list