| cbs4_search | R Documentation |
Search a opendata table using free text search.
cbs4_search(
query,
catalog = "CBS",
language = "nl-nl",
convert_dates = TRUE,
verbose = getOption("cbsodata4.verbose", FALSE),
base_url = getOption("cbsodata4.base_url", BASEURL4)
)
query |
|
catalog |
only show the datasets from that catalog. If |
language |
|
convert_dates |
Converts date columns in Date-Time type (in stead of |
verbose |
Should the url request be printed? |
base_url |
base url of the CBS OData 4 API |
data.frame same format as cbs4_get_datasets() plus extra $rel column
with the search score.
The search engine currently searches in the odata3 data collection, but uses the Identifiers to find tables in the odata4 data collection.
if (interactive()){
ds_nl <- cbs4_search("geboorte", language="nl-nl")
ds_nl[1:3, c("Identifier", "Title", "rel")]
bike_tables <- cbs4_search("fiets")
bike_tables[1:10, c("Identifier", "Title", "rel")]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.