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 iny
. IfTRUE
the returned data frame will contain all data fromx
, and the filteredy
data that does not overlap withx
. If FALSE, a union betweenx
andy
is returned.- time_variable
column name of time variable in
x
andy
, default is "period_end_date"