bind {fSeries} | R Documentation |
Binds two timeSeries objects either by column or row.
## S3 method for class 'timeSeries': cbind(x, y, units = NULL) ## S3 method for class 'timeSeries': rbind(x, y, units = NULL)
units |
an optional character string, which allows to overwrite the
current column names of a timeSeries object. By default
NULL which means that the column names are selected
automatically.
|
x, y |
two objects of class timeSeries .
|
returns a S4 object of class timedate
.
Diethelm Wuertz for the Rmetrics R-port.
## data - x = as.timeSeries(data(msft.dat))[1:12, ] ## cbind - cbind(x[, "Open"], returnSeries(x[, "Open"]), units = c("Open", "Return")) ## rbind - rbind(x[1:3, "Open"], x[10:12, "Open"])