Skip to contents

Joins series data and trend datasets and keeps all time units in one of the datasets.

Usage

WaveletJoiner(
  time_variable = "period_end_date",
  series_suffix = "_series",
  trend_suffix = "_trend",
  keep_series_dates = TRUE
)

Arguments

time_variable

column name of time variable in `data`, default is "period_end_date"

series_suffix

suffix to be appended to series data fields

trend_suffix

suffix to be appended to trend data fields

keep_series_dates

boolean flag to indicate if the dates in `series_data` should be kept and data from `trend_data` is left joined, if `FALSE` dates from `trend_data` are left joined instead

Value

function to join data and trend data sets

## Returned Function

- Arguments * `series_data` data frame containing time series data * `trend_data` data frame containing trend data - Return - joined data set by `time_variable` with updated field names