Installation Instructions
install R
installation instructions can be found here: https://cran.r-project.org/
## install RStudio IDE (optional but a good idea)
installation instructions can be found here: https://posit.co/downloads/
open RStudio and type in the console:
install.packages("devtools")
library(devtools)
install_github("sedzinfo/worldbank")
Note: install_github() may fail for this repository because package data files are tracked with Git LFS and GitHub source tarballs can contain LFS pointer files instead of binary .rda data.
Alternative installation
Since the data range from 1960 onwards and there are thousands of indicators, we use git large file storage. Since the last update where the data file became larger than 100mb git will not accept directly so large files. As a result the traditional installation may not work. Use one of the following reliable options:
- Clone the repository with Git LFS enabled and install locally:
git lfs install
git clone https://github.com/sedzinfo/worldbank.git
Then in R:
devtools::install_local("worldbank")
- Download the full repository and regenerate package data locally by running
financial_indicators.Rand thengenerate_package.R.
Update data
In order to update the data: 1. run the financial_indicators.R script 2. run the generate_package.R script
The data updates almost yearly so there is no need for frequent updates
Features
- ๐ Country Comparison: Compare a selected indicator across multiple countries over time
- ๐ Indicator Comparison: Analyze multiple indicators for a specific country
- ๐ฅ Population Pyramids: Visualize demographic structures by age and gender
- ๐ Rankings: Bar chart rankings of countries by selected indicators
- ๐ Scatterplots: Explore relationships between two indicators
- ๐บ๏ธ Animated Maps: Interactive choropleth maps showing temporal changes
- ๐ Data Explorer: Browse the complete dataset in tabular format
Data
The package includes World Bank indicators covering: - Economic indicators (GDP, trade, inflation) - Social indicators (education, health, employment) - Demographic data (population by age and gender) - Development metrics spanning from 1960 to present
Data source: World Bank Open Data
Git LFS Setup
Large files (e.g.ย datasets) are stored using Git LFS. Follow the steps below to clone the repository and retrieve them.
1. Install Git LFS (one-time setup)
Ubuntu/Debian:
Mac:
Windows:
Download and run the installer from https://git-lfs.com, then:






