Displaying 1 result from an estimated 1 matches for "xybyt".
Did you mean:
xbyt
2009 Sep 19
1
Converting matrices into row vectors and saving as ASCII text
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(data)[3],dim(data)[1]*dimdata[2])
So I get data with 100 rows, 15 columns.
I need