Union Time Series
union_series.Rd
Combine two time series data sets with the option to handle overlapping time periods. This is particularly useful for data sets that come from two sources (ex. LBoM and RG). Assumes both data sets have the same number of columns with the same names.
Arguments
- x
first data frame containing time series data
- y
second data frame containing time series data
- overlap
boolean to indicate if `x` should get priority with overlapping time periods in `y`. If `TRUE` the returned data frame will contain all data from `x`, and the filtered `y` data that does not overlap with `x`. If FALSE, a union between `x` and `y` is returned.
- time_variable
column name of time variable in `x` and `y`, default is "period_end_date"