r-wbids

R package to access and analyze World Bank International Debt Statistics (IDS)

https://github.com/teal-insights/r-wbids

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

R package to access and analyze World Bank International Debt Statistics (IDS)

Basic Info
Statistics
  • Stars: 9
  • Watchers: 1
  • Forks: 0
  • Open Issues: 11
  • Releases: 3
Created over 1 year ago · Last pushed 10 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# wbids


[![CRAN status](https://www.r-pkg.org/badges/version/wbids)](https://cran.r-project.org/package=wbids)
[![CRAN downloads](https://cranlogs.r-pkg.org/badges/wbids)](https://cran.r-project.org/package=wbids)
[![R-CMD-check](https://github.com/Teal-Insights/r-wbids/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Teal-Insights/r-wbids/actions/workflows/R-CMD-check.yaml)
[![Lint](https://github.com/Teal-Insights/r-wbids/actions/workflows/lint.yaml/badge.svg)](https://github.com/Teal-Insights/r-wbids/actions/workflows/lint.yaml)
[![Codecov test coverage](https://codecov.io/gh/Teal-Insights/r-wbids/graph/badge.svg)](https://app.codecov.io/gh/Teal-Insights/r-wbids)


`wbids` is an R package to access and analyze the World Bank’s [International Debt Statistics (IDS)](https://www.worldbank.org/en/programs/debt-statistics/ids). IDS provides creditor-debtor relationships between countries, regions, and institutions. 'wbids' enables users to download, process and work with IDS series across multiple entities, counterparts, and time periods. 

The `wbids` package relies on a redefinition of the original World Bank data: 'entities' contain both countries and regions, while 'counterparts' include both counterpart areas and institutions. `wbids` provides a consistent mapping of identifiers and names across these different types. The corresponding [package vignette](https://teal-insights.github.io/r-wbids/articles/data-model.html) provides more details on the data model.

The package is part of the [EconDataverse](https://www.econdataverse.org/) family of packages aimed at helping economists and financial professionals work with sovereign-level economic data.

This package is a product of Teal Insights and not sponsored by or affiliated with the World Bank in any way, except for the use of the World Bank IDS API.

## Installation 

You can install `wbids` from [CRAN](https://CRAN.R-project.org/package=wbids) via:

```r
install.packages("wbids")
```

You can also install the development version of `wbids` like this:

```r
# install.packages("pak")
pak::pak("teal-insights/r-wbids")
```

On Linux, you may need to install `libcurl4-openssl-dev` as a prerequisite to build the package.

## Usage

The main function `ids_get()` provides an interface to download multiple IDS series for multiple entities and counterparts and specific date ranges. 

```r
library(wbids)

ids_get(
  geographies = c("ZMB", "ZAF"),
  series = c("DT.DOD.DPPG.CD", "BM.GSR.TOTL.CD"),
  counterparts = c("216", "231"),
  start_year = 2015,
  end_year = 2020
)
```

The package comes with prepared metadata about available series, entities, counterparts, and topics. Please consult the [package vignette](https://teal-insights.github.io/r-wbids/articles/data-model.html) for details. 

```r
ids_list_series()
ids_list_entities()
ids_list_counterparts()
ids_list_series_topics()
```

This data can be used to enrich the IDS series or facilitate data discovery. For further applications, please consult [Teal Insights’ Guide to Working with the World Bank International Debt Statistics](https://teal-insights.github.io/teal-insights-guide-to-wbids/).

The interface and column names are fully consistent with World Development Indicators (WDI) data provided through the `wbwdi` package. You can find details on [github.com/tidy-intelligence/r-wbwdi](https://github.com/tidy-intelligence/r-wbwdi).

## Contributing

Contributions to `wbids` are welcome! If you'd like to contribute, please follow these steps:

1. **Create an issue**: Before making changes, create an issue describing the bug or feature you're addressing.
2. **Fork the repository**: Fork the repository to your GitHub account.
3. **Create a branch**: Create a branch for your changes with a descriptive name.
4. **Make your changes**: Implement your bug fix or feature.
5. **Test your changes**: Run tests to ensure your changes don't break existing functionality.
6. **Submit a pull request**: Push your changes to your fork and submit a pull request to the main repository.

For more detailed information on the package structure and development process, please visit the [project Wiki](https://github.com/Teal-Insights/r-wbids/wiki).

### Package Structure

The package is organized around three main functional groups:

```mermaid
graph TB
    A[wbids] --> B[ids_list_*]
    A --> C[ids_get]
    A --> D[ids_bulk*]
    
    B --> B1[ids_list_counterparts]
    B --> B2[ids_list_entities] 
    B --> B3[ids_list_series]
    B --> B4[ids_list_series_topics]
    
    D --> D1[ids_bulk]
    D --> D2[ids_bulk_files]
    D --> D3[ids_bulk_series]

    classDef default fill:#fff,stroke:#333,color:#333
    classDef main fill:#f9f,stroke:#333,color:#000,font-weight:bold
    classDef group fill:#bbf,stroke:#333,color:#000

    class A main
    class B,C,D group
    class B1,B2,B3,B4,D1,D2,D3 default
```

Owner

  • Name: Teal Insights
  • Login: Teal-Insights
  • Kind: organization

GitHub Events

Total
  • Create event: 26
  • Release event: 2
  • Issues event: 51
  • Watch event: 5
  • Delete event: 20
  • Issue comment event: 75
  • Public event: 1
  • Push event: 93
  • Pull request review comment event: 6
  • Pull request review event: 12
  • Gollum event: 3
  • Pull request event: 42
Last Year
  • Create event: 26
  • Release event: 2
  • Issues event: 51
  • Watch event: 5
  • Delete event: 20
  • Issue comment event: 75
  • Public event: 1
  • Push event: 93
  • Pull request review comment event: 6
  • Pull request review event: 12
  • Gollum event: 3
  • Pull request event: 42

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 30
  • Total pull requests: 24
  • Average time to close issues: 16 days
  • Average time to close pull requests: 1 day
  • Total issue authors: 3
  • Total pull request authors: 3
  • Average comments per issue: 1.23
  • Average comments per pull request: 1.46
  • Merged pull requests: 20
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 30
  • Pull requests: 24
  • Average time to close issues: 16 days
  • Average time to close pull requests: 1 day
  • Issue authors: 3
  • Pull request authors: 3
  • Average comments per issue: 1.23
  • Average comments per pull request: 1.46
  • Merged pull requests: 20
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • chriscarrollsmith (15)
  • christophscheuch (12)
  • t-emery (3)
Pull Request Authors
  • christophscheuch (16)
  • chriscarrollsmith (7)
  • t-emery (1)
Top Labels
Issue Labels
bug (7) enhancement (5) documentation (1) release (1)
Pull Request Labels
enhancement (6) bug (6) documentation (5)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 100 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: wbids

Seamless Access to World Bank International Debt Statistics (IDS)

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 100 Last month
Rankings
Dependent packages count: 27.8%
Dependent repos count: 34.2%
Average: 49.7%
Downloads: 87.0%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
  • r-lib/actions/setup-tinytex v2 composite
.github/workflows/lint.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.1 depends
  • cli * imports
  • dplyr >= 1.0.0 imports
  • httr2 >= 1.0.0 imports
  • purrr >= 1.0.0 imports
  • rlang >= 1.0.0 imports
  • tidyr >= 1.0.0 imports
  • withr * imports
  • curl * suggests
  • jsonlite * suggests
  • languageserver >= 0.3.16 suggests
  • lintr >= 3.1.2 suggests
  • quarto * suggests
  • readxl >= 1.0.0 suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests
  • tibble * suggests
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite