build_query_string_cl: build_query_string_cl Create povcalnet query string for...

View source: R/build_query_string_cl.R

build_query_string_clR Documentation

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

Description

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

Usage

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))

worldbank/povcalnetR documentation built on Jan. 31, 2023, 4:30 a.m.