https://github.com/cran/spate
Revision cf279e1035cc5525a47ebd82922dfc3a3281beaa authored by Fabio Sigrist on 29 November 2012, 00:00:00 UTC, committed by Gabor Csardi on 29 November 2012, 00:00:00 UTC
0 parent
Raw File
Tip revision: cf279e1035cc5525a47ebd82922dfc3a3281beaa authored by Fabio Sigrist on 29 November 2012, 00:00:00 UTC
version 1.0
Tip revision: cf279e1
TSmat.to.vect.Rd
\name{TSmat.to.vect}
\alias{TSmat.to.vect}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Converts a matrix stacked vector.
}
\description{
Converts a time-space matrix with columns and rows
corresponding to time and space into a stacked N*T vector.
}
\usage{
TSmat.to.vect(mat)
}
\arguments{
  \item{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{
Fabio Sigrist
}
\examples{
vect <- 1:12
mat <- vect.to.TSmat(vect,T=3)##Convert vector to matrix
TSmat.to.vect(mat)##Convert matrix to vector.
}
back to top