Bind two timeSeries objects

Description

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

Value

returns a S4 object of class timeDate.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.