Last chance! 50% off unlimited learning
Sale ends in
This function allows finds indicators that match a search term and returns a data frame of matching results
wbsearch(
pattern = "poverty",
fields = c("indicator", "indicatorDesc"),
extra = FALSE,
cache
)
Character string or regular expression to be matched
Character vector of column names through which to search
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
List of data frames returned from wbcache
. If omitted,
wb_cachelist_dep
is used
Data frame with indicators that match the search pattern.
# NOT RUN {
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")
# }
Run the code above in your browser using DataLab