wbsearch: Search indicator information available through the World Bank...

Description Usage Arguments Value Examples

View source: R/deprecated-wbsearch.R

Description

This function allows finds indicators that match a search term and returns a data frame of matching results

Usage

1
2
3
4
5
6
wbsearch(
  pattern = "poverty",
  fields = c("indicator", "indicatorDesc"),
  extra = FALSE,
  cache
)

Arguments

pattern

Character string or regular expression to be matched

fields

Character vector of column names through which to search

extra

if FALSE, only the indicator ID and short name are returned, if TRUE, all columns of the cache parameter's indicator data frame are returned

cache

List of data frames returned from wbcache. If omitted, wb_cachelist_dep is used

Value

Data frame with indicators that match the search pattern.

Examples

1
2
3
4
5
6
7
wbsearch(pattern = "education")

wbsearch(pattern = "Food and Agriculture Organization", fields = "sourceOrg")

# with regular expression operators
# 'poverty' OR 'unemployment' OR 'employment'
wbsearch(pattern = "poverty|unemployment|employment")

nset-ornl/wbstats documentation built on March 6, 2021, 4:42 a.m.