Skip to contents

Get the metadata of a BFS dataset using the BFS offical API v1. You should choose either the bfs number of the bfs offical url of a given dataset.

Usage

bfs_get_metadata(url_bfs = NULL, language = "de", number_bfs = NULL)

Arguments

url_bfs

The URL page of a dataset.

language

Language of the dataset to be translated if exists.

number_bfs

The BFS number of a dataset.

Value

A tbl_df (a type of data frame; see tibble or dplyr packages).

Examples

bfs_get_metadata(number_bfs = "px-x-2105000000_501", language = "fr")
#> # A tibble: 4 × 6
#>   code                  text                  values      valueTexts time  title
#>   <chr>                 <chr>                 <list>      <list>     <lgl> <chr>
#> 1 Stadt / Agglomeration Ville / agglomération <chr [27]>  <chr [27]> NA    City…
#> 2 Variable              Variable              <chr [445]> <chr>      NA    City…
#> 3 Resultat              Résultat              <chr [2]>   <chr [2]>  NA    City…
#> 4 Jahr                  Année                 <chr [12]>  <chr [12]> TRUE  City…