powered by
Converts a time-space matrix with columns and rows corresponding to time and space into a stacked N*T vector.
TSmat.to.vect(mat)
A vector of stacked values. Stacking is done first over space and then time.
A T x N matrix with columns and rows corresponding to time and space, respectively.
Fabio Sigrist
vect <- 1:12 mat <- vect.to.TSmat(vect,T=3)##Convert vector to matrix TSmat.to.vect(mat)##Convert matrix to vector.
Run the code above in your browser using DataLab