View source: R/bfs_get_catalog_data.R
| bfs_get_catalog_data | R Documentation |
Search the datasets of the BFS catalog
(https://www.bfs.admin.ch/bfs/en/home/statistics/catalogue.html, article
type "Data") that can be downloaded with bfs_get_data().
bfs_get_catalog_data(
language = "de",
title = NULL,
extended_search = NULL,
spatial_division = NULL,
prodima = NULL,
inquiry = NULL,
institution = NULL,
publishing_year_start = NULL,
publishing_year_end = NULL,
order_nr = NULL,
limit = 1000,
article_model = 900033,
article_model_group = 900029,
return_raw = FALSE
)
language |
Language of the catalog: |
title |
Text to search in the titles. |
extended_search |
Text to search in the titles, BFS number and summaries. |
spatial_division |
Spatial division of the datasets: |
prodima |
Theme number(s) of the BFS, e.g. |
inquiry |
Inquiry (survey) id. |
institution |
Institution id. |
publishing_year_start, publishing_year_end |
First and last publishing year. |
order_nr |
BFS number, e.g. |
limit |
Maximum number of results (1000 by default). A message tells
you when the catalog has as many results as |
article_model, article_model_group |
Article type ids of the DAM API. The defaults select the "Data" (or "Tables") article type; you don't need to change them. |
return_raw |
If |
The English and Italian catalogs have fewer datasets than the German and
French ones. Arguments accept several values, e.g.
prodima = c(900210, 900212).
A tibble with the columns:
Title of the dataset.
Language of the catalog.
BFS number, to use in bfs_get_data().
Asset number, to use in bfs_download_asset().
Publication date.
URL of the dataset in the PXWeb API.
Returns NULL if there is no internet connection.
bfs_get_data(), bfs_get_catalog_tables()
bfs_get_catalog_data(language = "en", extended_search = "student")
# by theme ("Education and science")
bfs_get_catalog_data(language = "en", prodima = 900212)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.