mergeSeries: Merge Time Indexed Series

Description Usage Arguments Details Value See Also


Merge two time-indexed series using either the levels or the first differences of the second series where the series overlap.


mergeSeries(x, y, differences = FALSE, naLoses = FALSE)


x, y

tis objects, or objects that can sensibly be coerced to tis by as.tis.


if TRUE, the first differences of series are merged, and then cumulatively summed. The default is FALSE.


if TRUE, NA values in y do not overwrite corresponding values in x.


x and y must have the same tif (ti frequency), and the same number of column (if they are multivariate).


A tis object series with start and end dates that span those of x and y. Where the series overlap, values from y are used, except that if naLoses is TRUE, NA values from y do not overwrite non-NA values in x.

See Also


Search within the tis package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.