Learn R Programming

FAOSTAT (version 1.1)

getWDI: Access to World Bank WDI API

Description

A function to extract data from the World Bank API

Usage

getWDI(indicator = "SP.POP.TOTL", startDate = 1960,
    endDate = format(Sys.Date(), "%Y"), printURL = FALSE)

Arguments

indicator
The World Bank official indicator name.
startDate
The start date for the data to begin
endDate
The end date.
printURL
Whether the url link for the data should be printed

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