Learn R Programming

timeSeries (version 4041.111)

merge: Merge 'timeSeries' objects

Description

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

Usage

merge(x, y, ...)

Value

a "timeSeries" object

Arguments

x,y

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

...

further objects to merge.

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

Examples

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

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

set.seed(1234)
## 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)

Run the code above in your browser using DataLab