Internal worker behind proc_trendecon_ch(), proc_trendecon_de() and proc_trendecon_at(). Each index is processed in isolation: if one index (or a keyword within it) fails, the remaining indices still run, and every index that succeeds is copied to data/<geo> immediately. This prevents a single bad keyword or a transient Google Trends error from zeroing out the entire daily run.

proc_trendecon(geo, indices, backfill_from = NULL)

Arguments

geo

Two-letter geography, e.g. "CH".

indices

Named list mapping each index name to its keyword vector. Indices are processed in list order.

backfill_from

Optional start date (YYYY-mm-dd) passed to proc_index() / proc_keyword_backfill_daily() to fill a daily gap left by an outage. Use once; leave NULL for normal daily runs.

Value

Invisibly, a data frame with one row per index and columns geo, index, ok, error. Stops with an error only if every index failed.