Learn R Programming

FAOSTAT (version 1.6)

getWDI: Access to World Bank WDI API

Description

A function to extract data from the World Bank API

Usage

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'.

Value

  • A data frame containing the desired World Bank Indicator

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/.

See Also

getFAO, getWDItoSYB, getFAOtoSYB

Examples

Run this code
## pop.df = getWDI()

Run the code above in your browser using DataLab