merge | R Documentation |

Merges several object types with `"timeSeries"`

objects. The
number of rows must match.

```
merge(x, y, ...)
```

`x,y` |
objects to merge, at least one of class |

`...` |
further objects to merge. |

a `"timeSeries"`

object

`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")`

`cbind`

```
## 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)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.