Skip to contents

Returns Swiss National Bank (SNB) data a given id

Usage

snb_data(id, start_date = NULL, end_date = NULL, lang = c("en", "de"))

Arguments

id

(character(1)) id of the time series.

start_date

(character(1) | Date(1)) start date of the time series.

end_date

(character(1) | Date(1)) end date of the time series.

lang

(character(1)) language to query, either "en" or "de". Default "en".

Value

A data.table() with the requested data.

See also

Other data: bbk_data(), bbk_series(), ecb_data()

Examples

if (FALSE) { # \dontrun{
snb_data("rendopar")
snb_data("zikrepro")
snb_data("devkum")
snb_data("ziverzq")
snb_data("zimoma")
} # }