Access to World Bank WDI API

Share:

Description

A function to extract data from the World Bank API

Usage

1
2
3
getWDI(indicator = "SP.POP.TOTL", name = NULL, startDate = 1960,
  endDate = format(Sys.Date(), "%Y"), printURL = FALSE,
  outputFormat = "wide")

Arguments

indicator

The World Bank official indicator name.

name

The new name to be used in the column.

startDate

The start date for the data to begin

endDate

The end date.

printURL

Whether the url link for the data should be printed

outputFormat

The format of the data, can be 'long' or 'wide'.

Details

Please refer to http://data.worldbank.org/node/18 for any difference between the country code system. Further details on World Bank classification and methodology are available at http://data.worldbank.org/.

Value

A data frame containing the desired World Bank Indicator

See Also

getFAO, getWDItoSYB, getFAOtoSYB

Examples

1
## pop.df = getWDI()