Skip to contents

Retrieve cube-level metadata (title, frequency, source, publication date) from the SNB data portal.

Usage

snb_metadata(key, lang = "en")

Arguments

key

(character(1))
The series key to query.

lang

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

Value

A single-row data.table::data.table() with columns:

key

The cube key

title

The cube title

sub_title

The cube subtitle

publishing_title

The publishing section title

public_since_date

The first publication date

frequency

The frequency specification (e.g., "Day", "Month")

source

The data source

has_multiple_sources

Whether the cube has multiple sources

Examples

# \donttest{
snb_metadata("rendopar")
#>         key                             title
#>      <char>                            <char>
#> 1: rendopar Nelson-Siegel-Svensson parameters
#>                                                       sub_title
#>                                                          <char>
#> 1: For calculating the daily yield curve of Confederation bonds
#>                     publishing_title public_since_date frequency
#>                               <char>            <Date>    <char>
#> 1: Interest rates and exchange rates        2025-09-01       Day
#>                       source has_multiple_sources
#>                       <char>               <lgcl>
#> 1: Swiss National Bank (SNB)                FALSE
# }