bind {timeSeries}R Documentation

Bind two timeSeries objects

Description

Binds two 'timeSeries' objects either by column or row.

Value

returns a S4 object of class timedate.

Examples

## Load Microsoft Data Set -
   data(MSFT)
   x = MSFT[1:12, ]

## Bind Columnwise -
   X <- cbind(x[, "Open"], returns(x[, "Open"]))
   colnames(X) <- c("Open", "Return")
   X

## Bind Rowwise - 
   Y <- rbind(x[1:3, "Open"], x[10:12, "Open"])
   Y

[Package timeSeries version 2160.95 Index]