[R] how to export data in the order

From: Nongluck Klibbua <Nongluck.Klibbua_at_newcastle.edu.au>
Date: Thu 19 May 2005 - 13:10:29 EST


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



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 Received on Thu May 19 13:31:52 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:50 EST