R/proc_keyword_backfill_daily.R
proc_keyword_backfill_daily.RdThe daily Google Trends download in proc_keyword_latest() only covers the
last ~90 days. After an interruption of the daily run, the stored daily series
therefore has a hole: everything between the last pre-outage observation and
~90 days ago is missing. proc_combine_freq() uses the daily series as the
high-frequency indicator for tempdisagg::td(), which cannot disaggregate
across a hole and fails. This function refills the daily series over the gap
using the same efficient overlapping windows as proc_keyword_init(), so that
the combine and seasonal-adjustment steps work again and the resulting series
is fully consistent at daily resolution.
proc_keyword_backfill_daily(
keyword = "Insolvenz",
geo = "CH",
from = NULL,
wait = 4,
retry = 6
)Invisibly TRUE.
Only the daily series needs backfilling: a normal daily run already refreshes the weekly (one year) and monthly (since 2006) series over their full span.