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