Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

how to link world bank data into r

WDI::WDI(country = "all", indicator = "FR.INR.DPST", start = 1960, end = 2025,
...)
#Country Argument takes ISO-2 char codes, e.g. "BR", "US", "CA")

#Use countrycode function to convert countrynames to ISO-2 char codes
countrycode::countrycode(sourcevar = c("United Kingdom", "Malaysia"),
                         origin = "country.name", destination = "iso2c")
 
PREVIOUS NEXT
Tagged: #link #world #bank #data
ADD COMMENT
Topic
Name
6+1 =