Get Country Profiles
get_cp(
country = "all",
povline = 2.15,
version = NULL,
ppp_version = 2017,
release_version = NULL,
api_version = "v1",
format = c("arrow", "rds", "json", "csv"),
simplify = TRUE,
server = NULL
)
character: A vector with one or more country ISO 3 codes or 'all'
numeric: Poverty line
character: Data version. See get_versions()
ppp year to be used
date when the data was published in YYYYMMDD format
character: API version
character: Response format either of c("rds", "json", "csv")
logical: If TRUE (the default) the response is returned as a
tibble
character: Server. For WB internal use only
If simplify = FALSE
, it returns a list of class "pip_api". If
simplify = TRUE
, it returns a tibble with the requested data. This is the
default. Only for get_aux()
, If assign_tb = TRUE
or character, it
returns TRUE when data was assign properly to .pip env. FALSE, if it was
not assigned.
if (FALSE) { # \dontrun{
# One country, all years with default ppp_version = 2017
res <- get_cp(country = "AGO")
# All countries, povline = 1.9
res <- get_cp(povline = 1.9)
# All countries and years with default values
res <- get_cp()
} # }