ssb_search: Search id, title and tags of available data sets from...

Description Usage Arguments Value Examples

Description

Data frame with id, title, tag and URLs for data sets matching the provided search terms.

Usage

1
2
ssb_search(..., lang = "en", list = NULL, update_list = FALSE,
  print_results = TRUE, return_results = TRUE)

Arguments

...

Character string(s) to use as search terms.

lang

Language of available data sets to use. Can be "en" for english or "no" for norwegian.

list

List of available data sets retrieved with the ssb_list() function. If not provided, the function uses a local list for the search (unless update_list is set to TRUE).

update_list

If TRUE the function downloads and use an updated list of available data sets for the search.

print_results

If TRUE it will print the results in the terminal.

return_results

If TRUE it returns the results as data frame, otherwise it returns NULL.

Value

Data frame with id, title, tag and URLs of data sets matching the provided search terms.

Examples

1
2
res <- ssb_search("population")
View(res)

mikaelpoul/ssbR documentation built on May 22, 2019, 10:51 p.m.