An interface to compute poverty and inequality indicators for more than 160 countries and regions from the World Bank's database of household surveys, through the Poverty and Inequality Portal (PIP).
The pipr package allows R users to compute poverty and inequality
indicators for more than 160 countries and regions from the World Bank’s
database of household surveys. It does so by accessing the Poverty and
Inequality Platform (PIP) API. PIP is a computational tool that allows
users to estimate poverty rates for regions, sets of countries or
individual countries, over time and at any poverty line.
The CRAN package is currently archived. Install the development version from GitHub until it is available on CRAN again:
# From GitHub
devtools::install_github("worldbank/pipr")
This is a basic example that shows how to retrieve some key poverty and inequity statistics.
library(dplyr)
library(pipr)
df <- get_stats(country = "ALB")
glimpse(df)
get_aux("dictionary")