Get Country Profiles Key Indicators
get_cp_ki(
country = NULL,
povline = 2.15,
version = NULL,
ppp_version = 2017,
release_version = NULL,
api_version = "v1",
simplify = TRUE,
server = NULL
)One uppercase, three-letter country ISO code (required).
One finite, non-negative numeric poverty line, or NULL.
With ppp_version = 2011, NULL sends 1.9; otherwise the API applies
its default poverty line.
Data version in YYYYMMDD_PPP_XX_YY_IDENTITY format, or
NULL. See get_versions().
One integer-valued numeric PPP year, a four-digit year
string, or NULL.
A valid publication date in YYYYMMDD format, or
NULL.
API version. Currently only "v1" is supported.
One non-missing logical value. If TRUE (the default),
return simplified data.
One non-empty server name, or NULL for the production server.
For World Bank internal use only.
An unnested data frame of key indicators when simplify = TRUE,
or a pip_api list when simplify = FALSE.
if (interactive()) {
# One country, all years with default ppp_version = 2017
res <- get_cp_ki(country = "IDN")
# One country, povline = 1.9
res <- get_cp_ki(country = "IDN", povline = 1.9)
}