Union Time Series
union_series.RdCombine 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
xshould get priority with overlapping time periods iny. IfTRUEthe returned data frame will contain all data fromx, and the filteredydata that does not overlap withx. If FALSE, a union betweenxandyis returned.- time_variable
column name of time variable in
xandy, default is "period_end_date"