bind {fSeries}R Documentation

Bind two timeSeries objects

Description

Binds two timeSeries objects either by column or row.

Usage

## S3 method for class 'timeSeries':
cbind(x, y, units = NULL)  
## S3 method for class 'timeSeries':
rbind(x, y, units = NULL)

Arguments

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.

Value

returns a S4 object of class timedate.

Author(s)

Diethelm Wuertz for the Rmetrics R-port.

Examples

## 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"])

[Package fSeries version 260.73 Index]