Maailmanpankin data WDI-paketilla

05 Aug 2013

Tässä esimerkki

library(WDI)
## Error: there is no package called 'WDI'
dat <- WDI(indicator = c("NY.GDP.PCAP.KD"), country = c("CN", "RU", "IN", "BR"), 
           start = 1980, end = 2012)
## Error: could not find function "WDI"
library(ggplot2)
## Loading required package: methods
ggplot(dat, aes(year, NY.GDP.PCAP.KD, color = country)) + geom_line() + geom_point() + 
  labs(x = "year", y = "GDP per capita")
## Error: object 'dat' not found
comments powered by Disqus