wd_data_plot: data data and plot for one or more country and a variable...

Description Usage Arguments Value Examples

View source: R/wd_data_plot.R

Description

data data and plot for one or more country and a variable from worldbank

Usage

1
2
wd_data_plot(var = "NY.GDP.MKTP.CD", varname = "GDP", country = "CN",
  startyear = 1960, endyear = 2014)

Arguments

var:

variable code you can get it using WDIsearch("var"). The common variables are (1)"SL.UEM.TOTL.ZS"(unemployment rate), (2)"FP.CPI.TOTL.ZG" (inflation rate), (3)"NY.GDP.DEFL.KD.ZG"(Inflation, GDP deflator (annual)" ),(4)"GDPPCKN" –"Real GDP per Capita (real local currency units, various base years)", (5)"NY.GDP.MKTP.CD"- "GDP (current US$)" (6)"NY.GDP.MKTP.CN"- "GDP (current LCU)", (7)"NY.GDP.PCAP.CD" - "GDP per capita (current US$)" <ef><bc><88>8), (9)"NY.GDP.PCAP.KN" - "GDP per capita (constant LCU)", (10)"NYGDPMKTPCN"-"GDP, current LCU, millions"

varname:

var name you name it

country:

2 iso country code

startyear:

start year like 1960

endyear:

end year

Value

a list: data, p=plot

Examples

1
wd_data_plot("NY.GDP.MKTP.CD","GDP",c("CN","IN","US"),1960,2014)

Gabegit/gmdata documentation built on May 6, 2019, 5:32 p.m.