Returns a tibble containing the titles, publication date, observation periods, metadata url and download urls of available BFS datasets in a given language which match the given criteria.

bfs_search(string, data = bfs_get_metadata(), ignore.case = TRUE)

Arguments

string

A regular expression string to search for.

data

The data frame to search. This can be either a data frame previously fetched using bfs_get_metadata (recommended) or left blank, in which case a temporary data frame is fetched. The second option adds a few seconds to each search query.

ignore.case

Whether the search should be case-insensitive.

Value

A data frame.

See also

Examples

df_en <- bfs_get_metadata(language = "en") bfs_search("education", df_en)
#> # A tibble: 5 x 5 #> title observation_period published url url_px #> <chr> <chr> <chr> <chr> <chr> #> 1 Difficulties in… Observation period:… 29.08.2019 https://www.bf… https://www.… #> 2 Difficulties in… Observation period:… 29.08.2019 https://www.bf… https://www.… #> 3 University of a… Observation period:… 27.03.2019 https://www.bf… https://www.… #> 4 University of a… Observation period:… 27.03.2019 https://www.bf… https://www.… #> 5 Compulsory educ… Observation period:… 28.02.2019 https://www.bf… https://www.…