series-methods {timeSeries}R Documentation

Get and Set Data of a 'timeSeries'

Description

series returns Data slot a timeSeries object in a matrix form. New series can also be assign to the timeSeries.

Usage


series(x)
series(x) <- value



Arguments

x

a timeSeries object.

value

a vector, a data.frame or a matrix object of numeric data.

See Also

timeSeries()

Examples

## A Dummy timeSeries Object
   ts <- timeSeries()
   ts

## Get the Matrix Part - 
   mat <- series(ts)
   class(mat)
   mat

## Assign a New Univariate Series - 
   series(ts) <- rnorm(12)
   ts
   
## Assign a New Bivariate Series - 
   series(ts) <- rnorm(12)
   ts

[Package timeSeries version 2160.95 Index]