ai: Download data from indicators of the from World Bank API,...

View source: R/ai.R

aiR Documentation

Download data from indicators of the from World Bank API, Numbers for Development API and No Celings

Description

Download data from indicators of the from World Bank API, Numbers for Development API and No Celings

Usage

ai(country = "all", indicator, startdate = 2010, enddate = 2015,
  lang = c("en", "es", "fr", "ar", "zh"), meta = TRUE, cache)

Arguments

country

List of countries. If country is unspecified, 'all' is the default.

startdate

Start date of the requested date range of the indicator data

enddate

End date of the requsted date range of the indicator data

lang

Language in which to return the metadata of the indicators. If lang is unspecified, english is the default.

cache

Cache of the metadata of the indicators, countries and topics

Value

A data frame with the data of the indicator, countries and date range specified

Note

Not all data returns have support for langauges other than english. Indicators from No Celings are only available in english. If the specific return does not support your requested language by default it will return NA. For an enumeration of supported languages by data source. The options for lang are:

  • en: English

  • es: Spanish

Examples

# Get the data for two indicators and all countries
ai(indicator = c("SOC_046","SL.UEM.TOTL.NE.ZS"))

#Get the data for two indicators and one country from 2000 until 2015
ai(indicator = c("CONTFEHQ","SOC_046","SL.UEM.TOTL.NE.ZS"),country = c("CO"),startdate = 2000,enddate = 2015)

EL-BID/Agregador-de-indicadores documentation built on Sept. 15, 2024, 7:43 p.m.