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

View source: R/snb.R

snb_dataR 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")



bbk documentation built on April 3, 2025, 6:07 p.m.