timeSeries (version 3022.101.2)

series-methods: Get and Set Data of a 'timeSeries'

Description

series returns the @.Data slot of a timeSeries object in matrix form. New series can also be assign to an already existing timeSeries. coredata is a synonyme function nameing for series.

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