build_query_string_cl Create povcalnet query string for country level, survey year specification

build_query_string_cl(
  country,
  povline,
  year,
  ppp = NULL,
  coverage_type = NULL,
  format = "json"
)

Arguments

country

character: Requested country. Use iso3 codes

povline

numeric: Requested poverty lines in international dollars

year

numeric: Requested survey years

ppp

numeric: Optional - Custom PPP exchange rates (Purchasing Power parity)

coverage_type

character: Optional - Type of data coverage. Take one to the following values rural; urban; national; special_cpi; aggregated_distribution, invalid_ppp

format

character: Response format to be requested from the API: `csv` or `json`

Value

character

Examples

build_query_string_cl(country = c("ALB", "CHN"), povline = c(1.9, 2.0), year = c(2002, 2002))
#> [1] "C0=ALB&PL0=1.9&Y0=2002&C1=CHN&PL1=2&Y1=2002&format=json"