timeSeries (version 3022.101.2)

bind: Bind two timeSeries objects

Description

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

Arguments

Value

returns a S4 object of class timeDate.

Examples

Run this code
## Load Microsoft Data Set -
   x <- MSFT[1:12, ]
   x

## 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

Run the code above in your browser using DataLab