snb_data {bbk}R Documentation

Returns Swiss National Bank (SNB) data for a given id

Description

Returns Swiss National Bank (SNB) data for 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::data.table() with the requested data.

Source

https://data.snb.ch/en

See Also

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

Examples



snb_data("rendopar")
# or filter for date range
snb_data("rendopar", "2020-01-01", "2020-12-31")



[Package bbk version 0.6.0 Index]