if (FALSE) {
# One country-year
res <- get_stats(country = "AGO", year = 2000)
# All years for a specific country
res <- get_stats(country = "AGO", year = "all")
# All countries and years
res <- get_stats(country = "all", year = "all")
# All countries and years w/ alternative poverty line
res <- get_stats(country = "all", year = "all", povline = 3.2)
# Fill gaps for years without available survey data
res <- get_stats(country = "all", year = "all", fill_gaps = TRUE)
# Proportion living below the poverty line
res <- get_stats(country = "all", year = "all", popshare = .4)
# World Bank global and regional aggregates
res <- get_stats("all", year = "all", subgroup = "wb")
# Short hand to get WB global/regional stats
res <- get_wb()
# Short hand to get fcv stats
res <- get_agg(aggregate = "fcv", server = "qa")
# Custom aggregates
res <- get_stats(c("ARG", "BRA"), year = "all", subgroup = "none")
}
Run the code above in your browser using DataLab