Skip to contents

Linearly interpolates `NA` values in both series and trend variables.

Usage

WaveletInterpolator(
  time_variable = "period_end_date",
  series_variable = "deaths",
  trend_variable = "deaths",
  series_suffix = "_series",
  trend_suffix = "_trend"
)

Arguments

time_variable

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

series_variable

column name of series variable in `data`, default is "deaths_series"

trend_variable

column name of series variable in `data`, default is "deaths_trend"

series_suffix

suffix to be appended to series data fields

trend_suffix

suffix to be appended to trend data fields

Value

function that linearly interpolates series and trend data.

## Returned Function

- Arguments * `data` data frame containing time series data - Return - `data` with linearly interpolated `series_variable` and `trend_variable`