merge {fSeries}R Documentation

Merge two timeSeries objects

Description

Merges two timeSeries objects.

Usage

## S3 method for class 'timeSeries':
merge(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.
... arguments passed to other methods.

Value

returns an S4 object of class timeSeries.

Author(s)

Diethelm Wuertz for the Rmetrics R-port.

Examples

## data - 
   x = as.timeSeries(data(msft.dat))[1:20, "Open"]
   
## aggregate -
   merge(x, returnSeries(x))

[Package fSeries version 260.73 Index]