View source: R/build_query_string_qp.R
build_query_string_qp | R Documentation |
build_query_string_qp Create simplified povcalnet_qp query string
build_query_string_qp( country, popshare, year, aggregate = FALSE, fill_gaps = FALSE, coverage = "all", ppp = NULL, format = "json" )
country |
character: list of country iso3 code (accepts multiple) or 'all'. Use iso3 codes |
popshare |
numeric: Percentage of the population who live below the poverty line |
year |
numeric: list of years, or 'all', or 'last'. |
aggregate |
logical: 'TRUE' will return aggregate results, 'FALSE' country-level results. |
fill_gaps |
logical: 'TRUE' will interpolate / extrapolate values when surveys are not available for a specific year. |
coverage |
character: Can take one of four values: 'all' (default), 'national', 'urban', 'rural'. |
ppp |
numeric: Optional - Allows the selection of custom PPP (Purchasing Power Parity) exchange rates |
format |
character: Response format to be requested from the API: 'csv' or 'json' |
character
build_query_string_qp(country = c("ALB", "CHN"), popshare = .5, year = c(2002, 2012))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.