search_360 {data360r}R Documentation

Search TC/Govdata360 indicators, countries, categories, and dataset lists

Description

Searches using the TCdata360 API at https://tcdata360.worldbank.org/docs or Govdata360 API at https://govdata360.worldbank.org/docs. The function generates a wide dataframe containing the top search results related to the query.

Usage

search_360(
  search_string = "World Bank",
  site = "tc",
  search_type = NULL,
  limit_results = NULL
)

Arguments

search_string

string to query in TC/Govdata360

site

string pertaining to the data360 site to download data from. Possible choices: 'tc' for TCdata360, 'gov' for Govdata360

search_type

NULL (optional). Character vector of search types to include. Possible values include: 'indicator', 'category', 'country' Leaving this NULL will return all possible search results.

limit_results

NULL (optional). Number pertaining to the number of top results to be kept.

Details

Hint: Want to use your search results to call data? Helpful functions include:

Value

List containing top search results

Examples

## Since all functions download data through API, these are wrapped with
## the "donttest" function as advised by CRAN
#search a country's code in TCdata360
search_360('Philippines', search_type = 'country')

#search for top 10 relevant indicator codes in TCdata360
search_360('GDP', search_type = 'indicator', limit_results = 10)

#search for top 10 indicators of a database in TCdata360
search_360('World Development Indicators', search_type = 'indicator',
limit_results = 10)

#search for top 10 indicators of a data provider in TCdata360
search_360('WEF', search_type = 'indicator', limit_results = 10)

#search for top 10 relevant categories in Govdata360
search_360('Governance', site='gov', search_type = 'category', limit_results = 10)

[Package data360r version 1.0.9 Index]