View source: R/get_metadata360.R
get_metadata360 | R Documentation |
Downloads the requested metadata by 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.
get_metadata360(site = "tc", metadata_type = "countries")
site |
string pertaining to the data360 site to download data from. Possible choices: 'tc' for TCdata360, 'gov' for Govdata360 |
metadata_type |
string pertaining to the metadata to be downloaded. Possible choices: 'countries' == Lists metadata for all countries and regions. 'indicators' == Lists metadata for all indicators. Does not return actual data. 'datasets' == Lists metadata for all datasets. |
Hint: Want to get other data? Helpful functions include:
See search_360
to get search TC/Govdata360 indicators, countries, categories, and dataset lists.
See get_data360
to get actual indicator/dataset/country-level data.
See get_resources360
to get additional resource information.
Data frame (wide) containing requested metadata
## Since all functions download data through API, these are wrapped with ## the "donttest" function as advised by CRAN #get all indicator metadata in Govdata360 df_indicators <- get_metadata360(site="gov", metadata_type = "indicators") #get all country metadata in TCdata360 df_countries <- get_metadata360(metadata_type = 'countries') #get all dataset metadata in TCdata360 df_datasets <- get_metadata360(metadata_type = 'datasets')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.