Package: widr 0.1.1

widr: Interface to the World Inequality Database (WID)

Interface to the World Inequality Database (WID) API <https://wid.world>. Downloads distributional national accounts data with filters for country, year, percentile, age group, and population type. Includes code validation and reference tables. Independent implementation unaffiliated with the World Inequality Lab (WIL) or the Paris School of Economics.

Authors:Cheryl Isabella Lim [aut, cre]

widr_0.1.1.tar.gz
widr_0.1.1.zip(r-4.7-any)widr_0.1.1.zip(r-4.6-any)widr_0.1.1.zip(r-4.5-any)
widr_0.1.1.tgz(r-4.6-any)widr_0.1.1.tgz(r-4.5-any)
widr_0.1.1.tar.gz(r-4.7-any)widr_0.1.1.tar.gz(r-4.6-any)
widr_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
widr/json (API)

# Install 'widr' in R:
install.packages('widr', repos = c('https://cherylisabella.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cherylisabella/widr/issues

Datasets:

On CRAN:

Conda:

data-scienceeconomicsstatistics

4.30 score 346 downloads 29 exports 26 dependencies

Last updated from:c382ce4bb2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK118
source / vignettesOK194
linux-releaseOK117
macos-releaseOK202
macos-oldrelOK220
windows-develOK101
windows-releaseOK83
windows-oldrelOK91
wasm-releaseOK110

Exports:downloaddownload_widwid_ageswid_cachewid_cache_clearwid_cache_listwid_conceptswid_convertwid_countrieswid_decodewid_encodewid_fetchwid_filterwid_giniwid_is_validwid_metadatawid_percentile_ratiowid_percentileswid_plot_comparewid_plot_lorenzwid_plot_timeserieswid_pop_typeswid_querywid_searchwid_series_typeswid_set_keywid_tidywid_top_sharewid_validate

Dependencies:askpassbase64encclicpp11curldigestfarverggplot2gluegtablehttr2isobandjsonlitelabelinglifecyclemagrittropensslR6RColorBrewerrlangS7scalessysvctrsviridisLitewithr

WID Codes Dictionary
1. General Presentation | 2. General Structure | 2.1 WID Code Examples | 2.1.1 Series Type (one-letter code) | 2.1.2 Concept (five-letter code) | 2.1.3 Age Group (three-digit code) | 2.1.4 Population Unit (one-letter code) | 2.1.5 Series Type x Population Unit Availability | 2.2 Country Codes | Country Codes | World Region Codes | Historical Country Codes | Country Subregion Codes | 2.3 Percentile Codes | 3. Aggregate Income Variables | 3.1.1 GDP and Net National Income | 3.1.2 Decomposition of Foreign Income | 3.1.3 Decomposition of Foreign Wealth | 3.1.4 Decomposition of National Income between Sectors | 3.1.5 Labor and Capital Share of National Income | 3.1.6 Income Decomposition by Institutional Sector | 3.2 Income of Households and NPISH | 3.2.1 Income of the Sectors Combined | 3.2.1.1 Primary Incomes of Households and NPISH | 3.2.1.2 Secondary Incomes of Households and NPISH | 3.2.1.3 Consumption and Savings of Households and NPISH | 3.2.1.4 Relation between Net and Gross Variables | 3.2.2 Income of Households | 3.2.2.1 Primary Incomes of the Household Sector | 3.2.2.2 Secondary Incomes of the Household Sector | 3.2.2.3 Consumption and Savings of the Household Sector | 3.2.2.4 Relation between Net and Gross Variables | 3.2.3 Income of NPISH | 3.2.3.1 Primary Incomes of NPISH | 3.2.3.2 Secondary Incomes of NPISH | 3.2.3.3 Consumption and Savings of NPISH | 3.2.3.4 Relation between Net and Gross Variables | 3.3 Income of the Corporate Sector | 3.3.1 Income of the Sectors Combined | 3.3.1.1 Primary Income of Corporations | 3.3.1.2 Secondary Income of Corporations | 3.3.1.3 Relation between Net and Gross Variables | 3.3.2 Income of Non-financial Corporations | 3.3.2.1 Primary Income | 3.3.2.2 Secondary Income | 3.3.2.3 Relation between Net and Gross Variables | 3.3.3 Income of Financial Corporations | 3.3.3.1 Primary Income | 3.3.3.2 Secondary Income | 3.3.3.3 Relation between Net and Gross Variables | 3.4 Income of the Government Sector | 3.4.1 Primary Income of the Government | 3.4.2 Secondary Income of the Government | 3.4.3 Consumption and Savings of the Government | 3.5 Current Account | 3.5.1 Trade Balance | 3.5.2 Trade Balance of Services | 3.5.3 Trade Balance of Goods | 3.5.4 Capital Account | 3.5.5 Net Foreign Transfers | 4. Distributed Income Variables | 4.1 DINA Income | 4.1.1 Pretax Income | 4.1.2 Post-tax Income | 4.1.3 Factor Income | 4.2 "Fiscal" Income | 5. Aggregate Wealth Variables | 5.1 National Economy | 5.2 Households and NPISH | 5.2.1 Combined Sector (Private Wealth) | 5.2.2 Household Sector | 5.2.3 NPISH | 5.3 Corporate Sector | 5.4 General Government Sector | 6. Distributed Wealth Variables | 7. Price Index, Exchange Rates, Populations, etc. | 7.1 Price Index | 7.2 Exchange Rates | 7.3 Population | 7.4 Wealth/Income Ratios and Labor/Capital Shares | 7.5 Inequality Transparency | 8. Aggregate Carbon Variables | 8.1 National Territorial Emissions | 8.2 National Imported Emissions | 8.3 National Exported Emissions | 8.4 National Net Imports of Emissions | 8.5 National Carbon Footprint | 9. Distributed Carbon Variables | 10. Quick Reference

Last update: 2026-04-20
Started: 2026-03-05

widr
Installation | Variable codes | Downloading data | Multiple countries and percentiles | Excluding interpolated points | Source metadata | Key parameters | Tidyverse integration | Reusable query objects | Caching | Currency conversion | Inequality measures | Gini coefficient | Top fractile share | Percentile ratio | Plotting | Example | Quick reference

Last update: 2026-03-05
Started: 2026-03-05