[R] Converting matrices into row vectors and saving as ASCII text

2009-09-19 Thread Xi Ang
Hi I have some data with these dimensions: 5 3 100 which correspond to the x, y, and time dimensions, for a variable, p. I need the data in this format: 100 rows (1 row per time unit), and 15 values in each row. I have attempted to reshape my data >dim(data) 5 3 100 >attr(data,'dim')<-c(dim

Re: [R] Converting matrices into row vectors and saving as ASCII text

2009-09-19 Thread Xi Ang
50, dim=c(3,5,10)) > XYbyT= matrix(apply(XYT, 3, I), ncol=10) > > ...or even... > > XYbyT= matrix(XYT, ncol=10) > > -- > David. > > On Sep 19, 2009, at 1:11 PM, Xi Ang wrote: > >> >> Hi >> >> I have some data with these dimensions: >>