| wb_search | R Documentation |
Search the indicator catalog returned by wb_indicator() for a regular expression
pattern across one or more text fields. By default the match is case insensitive.
wb_search(
pattern,
fields = c("id", "name", "source_note"),
catalog = NULL,
lang = "en",
ignore.case = TRUE,
...
)
pattern |
( |
fields |
( |
catalog |
( |
lang |
( |
ignore.case |
( |
... |
( |
A data.frame() with the matching rows of the indicator catalog.
https://api.worldbank.org/v2/indicator
Other indicators data:
wb_bulk(),
wb_country(),
wb_data(),
wb_income_level(),
wb_indicator(),
wb_language(),
wb_lending_type(),
wb_region(),
wb_source(),
wb_topic()
# search for indicators related to GDP
wb_search("GDP")
# restrict the search to the indicator name
wb_search("unemployment", fields = "name")
# case-sensitive fixed-string match
wb_search("GDP", ignore.case = FALSE, fixed = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.