as.matrix.ts {fUtilities} | R Documentation |
Creates a matrix from the given "ts" or "mts" time series objects, a method missing in R's base package.
## S3 method for class 'ts' as.matrix(x, ...) ## S3 method for class 'mts' as.matrix(x, ...)
x |
an univariate or multivariate time series object
of class |
... |
arguments to be passed. |
## as.matrix - z <- ts(matrix(rnorm(300), 100, 3), start=c(1961, 1), frequency=12) class(z) z as.matrix(z)