TSmat.to.vect | R Documentation |
Converts a time-space matrix with columns and rows corresponding to time and space into a stacked N*T vector.
TSmat.to.vect(mat)
mat |
A T x N matrix with columns and rows corresponding to time and space, respectively. |
A vector of stacked values. Stacking is done first over space and then time.
Fabio Sigrist
vect <- 1:12
mat <- vect.to.TSmat(vect,T=3)##Convert vector to matrix
TSmat.to.vect(mat)##Convert matrix to vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.