bind {timeSeries} | R Documentation |
Binds two 'timeSeries' objects either by column or row.
returns a S4 object of class timedate
.
## 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