Using R to Extract Data from the World Bank's World Development Indicators
Main Article Content
Abstract
This article describes three applications which use a new R-based interface that facilitates extraction of data from the World Bank’s World Development Indicators (WDI) database. WDI contains over 1300 time series of socio-economic indicators and provides important inputs for the Global Trade Analysis Project (GTAP) Data Base and, as well, can assist in the development of socio-economic scenarios. The first application is a stand-alone R application that extracts per capita historical GDP for all countries and summarizes growth episodes across regions in a box plot. The two other applications highlight the increasing use of interoperability across software packages to take advantage of the specific features of each. The first couples the R-based WDI extraction with a ’Beamer’-type LATEX presentation. This is a potentially powerful combination for a quick (and programmatic) turnaround from data to presentation. With little effort, the application can be extended to generate a large number of slides. The second example of interoperability is centered on a General Algebraic Modeling System (GAMS) program that calls R as a sub-process to extract the data for further processing in GAMS. The R-script developed for this last application could be readily coupled with other software packages.
Article Details
Authors who publish with this journal agree to the following terms:
a. Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
b. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
c. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).