|
3 | 3 | #' Download WDI (World development indicators) data .rda file. |
4 | 4 | #' |
5 | 5 | #' @author David Chen |
6 | | -#' @seealso \code{\link{downloadSource}} \code{\link{WDI}} |
| 6 | +#' @seealso \code{\link[madrat]{downloadSource}} \code{\link[WDI]{WDI}} |
7 | 7 | #' @examples |
8 | 8 | #' |
9 | 9 | #' \dontrun{ a <- downloadSource(type="TutorialWDI") |
|
12 | 12 | #' @importFrom WDI WDI WDIcache WDIsearch |
13 | 13 |
|
14 | 14 |
|
15 | | -downloadTutorialWDI<-function(){ |
| 15 | +downloadTutorialWDI <- function() { |
16 | 16 | indicator <- c("NY.GDP.MKTP.CD", # gdp PPP current US$ |
17 | | - "SP.POP.TOTL", # Total population |
18 | | - "SL.AGR.EMPL.ZS", #Employment in agriculture as % of total employment |
| 17 | + "SP.POP.TOTL", # Total population |
| 18 | + "SL.AGR.EMPL.ZS", # Employment in agriculture as % of total employment |
19 | 19 | "NV.AGR.TOTL.CD") # Ag GDP current US$ |
20 | | - wdi <- WDI(indicator = indicator,start= 1960, end = 2018) |
21 | | - save(wdi,file = paste("WDI","rda",sep=".")) |
| 20 | + wdi <- WDI(indicator = indicator, start = 1960, end = 2018) |
| 21 | + save(wdi, file = paste("WDI", "rda", sep = ".")) |
22 | 22 |
|
23 | 23 | return(list(url = "https://data.worldbank.org/indicator/", |
24 | 24 | doi = NULL, |
25 | 25 | title = "World Bank Development Indicators", |
26 | 26 | description = "GDP and Population indicators", |
27 | 27 | author = NULL, |
28 | | - license = NULL, |
| 28 | + license = NULL, |
29 | 29 | unit = NULL)) |
30 | 30 |
|
31 | 31 | } |
0 commit comments