TSmat.to.vect: Converts a matrix stacked vector.

Description Usage Arguments Value Author(s) Examples

Description

Converts a time-space matrix with columns and rows corresponding to time and space into a stacked N*T vector.

Usage

1

Arguments

mat

A T x N matrix with columns and rows corresponding to time and space, respectively.

Value

A vector of stacked values. Stacking is done first over space and then time.

Author(s)

Fabio Sigrist

Examples

1
2
3
vect <- 1:12
mat <- vect.to.TSmat(vect,T=3)##Convert vector to matrix
TSmat.to.vect(mat)##Convert matrix to vector.


Search within the spate package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.