Downloads latest daily, weekly, and monthly data.

proc_keyword_latest(keyword = "Insolvenz", geo = "CH", n_windows = 12)

Arguments

keyword

A single keyword for which to process the data.

geo

A character vector denoting the geographic region. Default is "CH".

n_windows

Number (integer) of time-windows.

Daily data

Downloads data for the last 90 days in two windows, with the same end date (today) but start date shifted by one day. File saved as {keyword}_d_{today}.csv in folder data-raw/indicator_raw.

Weekly data

Downloads weekly data for two windows, first window starts 1 year ago, second window offset by one week, both windows end today. File saved as {keyword}_w_{today}.csv in folder data-raw/indicator_raw.

Monthly data

Downloads monthly data for two windows, first window starts at 2006-01-01, second window offset by 1 month, both windows end today. File saved as {keyword}_m_{today}.csv in folder data-raw/indicator_raw.