# NOT RUN {
d <- wb_search(pattern = "education")
# }
# NOT RUN {
# }
# NOT RUN {
d <- wb_search(pattern = "Food and Agriculture Organization", fields = "source_org")
# }
# NOT RUN {
# with regular expression operators
# 'poverty' OR 'unemployment' OR 'employment'
# }
# NOT RUN {
d <- wb_search(pattern = "poverty|unemployment|employment")
# }
# NOT RUN {
# pass any other grep argument along as well
# everything without 'education'
# }
# NOT RUN {
d <- wb_search(pattern = "education", invert = TRUE)
# }
# NOT RUN {
# contains "gdp" AND "trade"
# }
# NOT RUN {
d <- wb_search("^(?=.*gdp)(?=.*trade).*", perl = TRUE)
# }
# NOT RUN {
# contains "gdp" and NOT "trade"
# }
# NOT RUN {
d <- wb_search("^(?=.*gdp)(?!.*trade).*", perl = TRUE)
# }
Run the code above in your browser using DataLab