base-merge: Merge 'timeSeries' objects

mergeR Documentation

Merge 'timeSeries' objects

Description

Merges several object types with "timeSeries" objects. The number of rows must match.

Usage

merge(x, y, ...)

Arguments

x, y

objects to merge, at least one of class "timeSeries".

...

further objects to merge.

Value

a "timeSeries" object

Methods

signature(x = "timeSeries", y = "missing")
signature(x = "timeSeries", y = "ANY")
signature(x = "timeSeries", y = "matrix")
signature(x = "timeSeries", y = "numeric")
signature(x = "timeSeries", y = "timeSeries")
signature(x = "ANY", y = "ANY")
signature(x = "ANY", y = "timeSeries")
signature(x = "matrix", y = "timeSeries")
signature(x = "numeric", y = "timeSeries")

See Also

cbind

Examples

## Load Series -
   x <- MSFT[1:12, ]

## Merge 'timeSeries' with missing Object -
   merge(x)


## Merge 'timeSeries' with numeric Object -
   y <- rnorm(12)
   class(y)
   merge(x, y)

## Merge 'timeSeries' with matrix Object -
   y <- matrix(rnorm(24), ncol=2)
   class(y)
   merge(x, y)

## Merge 'timeSeries' with matrix Object -
   y <- timeSeries(data=rnorm(12), charvec=time(x))
   class(y)
   merge(x, y)

timeSeries documentation built on Sept. 30, 2024, 9:15 a.m.