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