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

Description Usage Arguments Value Author(s) Examples

View source: R/spateFcts.R

Description

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

Usage

1
vect.to.TSmat(vect, T = 1)

Arguments

vect

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

T

Number of time points.

Value

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

Author(s)

Fabio Sigrist

Examples

1
2
3
vect <- 1:12
vect
vect.to.TSmat(vect,T=3)

spate documentation built on May 29, 2017, 11:37 a.m.

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