This package downloads data from the online World Inequality Database (WID.world) directly into R. The World Inequality Database is an extensive source on the historical evolution of the distribution of income and wealth both within and between countries. It relies on the combined effort of an international network of over a hundred researchers covering more than seventy countries from all continents.
Install the CRAN release with:
install.packages("wid")To install the development version from GitHub:
install.packages("devtools")
devtools::install_github("world-inequality-database/wid-r-tool")Data are retrieved from the WID.world online data service. The main website is https://wid.world.
The package exports a single function download_wid(...). See ?download_wid for help.
See vignette("wid-demo"), or click here for a demonstration
of the package.