wbsearch {wbstats} | R Documentation |
Search indicator information available through the World Bank API
Description
This function allows finds indicators that match a search term and returns a data frame of matching results
Usage
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 |
cache |
List of data frames returned from |
Value
Data frame with indicators that match the search pattern.
Examples
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")
[Package wbstats version 1.0.4 Index]