pipr

R-CMD-check test-coverage pkgdown Codecov test coverage Lifecycle: stable R-CMD-check Codecov test coverage

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.

Installation

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

Example

This is a basic example that shows how to retrieve some key poverty and inequity statistics.

Retrieve statistics

library(dplyr)
library(pipr)

df <- get_stats(country = "ALB")
glimpse(df)

Access data dictionary

get_aux("dictionary")

mirror server hosted at Truenetwork, Russian Federation.