Client for the Poverty and Inequality Platform ('PIP') API

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


pipr

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

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("pipr")

1.5.0 by R.Andrés Castañeda, 12 days ago


https://worldbank.github.io/pipr/, https://github.com/worldbank/pipr


Report a bug at https://github.com/worldbank/pipr/issues


Browse source code at https://github.com/cran/pipr


Authors: Tony Fujs [aut] , Aleksander Eilertsen [aut] , Ronak Shah [aut] , R.Andrés Castañeda [aut, cre] , Giorgia Cecchinato [aut] , World Bank [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports arrow, attempt, curl, jsonlite, tibble, purrr, cli, rlang, utils, httr2, stringr, vroom

Suggests covr, testthat, spelling, knitr, rmarkdown, markdown, callr, ggplot2, tidyr, ggthemes, forcats, scales, dplyr, readr


See at CRAN