powered by
The function downloads data from the World Bank API.
getWDItoSYB( indicator = "SP.POP.0014.TO.ZS", name = NULL, startDate = 1960, endDate = format(Sys.Date(), "%Y"), printURL = FALSE, getMetaData = TRUE, printMetaData = FALSE, saveMetaData = FALSE, outputFormat = c("wide", "long") )
A list containing the following elements
The country level data
The aggregates provided by the World Bank
The metaData associated with the data
The status of the download, whether success/failed
The World Bank official indicator name.
The new name to be used in the column.
The start date for the data to begin
The end date.
Whether the url link for the data should be printed
Whether the data definition and the meta data should be downloaded as well.
logical, print out the meta data information
logical, whether meta data should be saved as a local csv file
The format of the data, can be 'long' or 'wide'.
getWDI, getFAO
getWDI
getFAO
## pop.df = getWDItoSYB(name = "total_population", ## indicator = "SP.POP.TOTL")
Run the code above in your browser using DataLab