Skip to content

decompr

6.9.0Package record

Global Value Chain Decomposition

1packages depend
5.1Kdownloads / year
88.4%test coverage
13/13flavors OK

Overview

About

Four global value chain (GVC) decompositions are implemented. The Leontief decomposition derives the value added origin of exports by country and industry as in Hummels, Ishii and Yi (2001). The Koopman, Wang and Wei (2014) decomposition splits country-level exports into 9 value added components, and the Wang, Wei and Zhu (2013) decomposition splits bilateral exports into 16 value added components. The Borin and Mancini (2019) decomposition splits country-, sector- or bilateral-level exports into up to 13 value added and GVC components. Various GVC indicators based on these decompositions are computed in the complimentary 'gvc' package. --- References: --- Hummels, D., Ishii, J., & Yi, K. M. (2001). The nature and growth of vertical specialization in world trade. Journal of international Economics, 54(1), 75-96. Koopman, R., Wang, Z., & Wei, S. J. (2014). Tracing value-added and double counting in gross exports. American Economic Review, 104(2), 459-94. Wang, Z., Wei, S. J., & Zhu, K. (2013). Quantifying international production sharing at the bilateral and sector levels (No. w19677). National Bureau of Economic Research. Borin, A., & Mancini, M. (2019). Measuring What Matters in Global Value Chains and Value-Added Trade. World Bank Policy Research Working Paper 8804.

Changes in 6.9.0
  • Added the Borin-Mancini (2019) decomposition via the new bm() function (also available through decomp(method = "bm")). It decomposes gross exports into up to 13 value-added and GVC terms at the country, sector, or bilateral-sector level, under the exporter/source or world/sink perspective. It is the R counterpart of decompose() in the Julia package ICIO.jl and reproduces the Stata icio command's output.
  • The kww() documentation now notes that the KWW decomposition is biased (it systematically underestimates foreign value added) and points to bm(perspective = "world", approach = "sink") for the Borin-Mancini correction. Cross-references to bm() were added throughout.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 6.9.0
READMEYes · 226 wordsVignettesYes · 1 · dynamicNEWSYes · 33% structured · mentions 6.9.0Citation fileYes · cites a publication
Help pages
10includes a package overview page
Examples that run
100%7 run in a plain check
Exported functions with examples
88%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
70%
Vignettes (1)

Downloads

5.1K
CRAN downloads in the past year
Rank #5,444 · ~14/day · ~424/mo
Daily download trend is not available in this view yet.
42030 days
1.5K90 days
5.1K1 year
Compare downloads with other packages →
Also on382 r2u2 autocran125 c2d4u

Repository

21Stars
13Forks
0Open issues
0Open PRs
17Releases
443Commits
6Commit identities
443 commits · Last activity 2026-06-09 · +5% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
87%
Median days to close, 50 most recently updated closed issues
1,624
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-04-26 · 192026-09-27 · 21
PracticesBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/bquast/decompr on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)

GitHub Pages site last deployed 2016-12-29

Coverage (1)
Coverage reporting
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-06-04
    Named in .Rbuildignore: .claude
    Commits: at least 4 crediting it in the message
Models named in its commits
  • Claude Opus 4.83 commits · Jun 2026
  • Claude Sonnet 4.61 commit · Jun 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing decompr adds 1 package (1 with compiled code, 207 KB of source tarballs). Heaviest: matrixStats 207 KB.

Depends (1)
R >= 3.5.0
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (5)
Author, Maintainer since 1.1 (2014)
Author · added in 6.2.0
Author · added in 1.3.2
Contributor · added in 6.0.0
Contributor · added in 4.5.0
Listed in earlier versions (2)
Victor K<c3><bc>mmritz
no longer listed · 1.3.2
no longer listed · 2.0 to 6.0.0
Releases (13)

Pick two releases to compare their code metrics.

  • 6.9.0Latest
    record
    2026-06-09 · current release · diff ↗ ·
    added 1 export
    bm
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 6.4.0
    record
    2022-06-19 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 6.2.0
    record
    2022-01-10 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 6.0.0
    record
    2021-05-10 · diff ↗ ·
    added 2 exports
    kww, wwz2kww
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 4.5.0
    record
    2016-08-17 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
Show 10 earlier eventsHide 10 earlier events
  • 4.1.0
    record
    2015-06-16 · diff ↗
  • 4.0.0
    record
    2015-06-02 · diff ↗ ·
    removed 1 export
    leontief_output
  • R
    R 3.2.0 released · 2015-04-16
  • 3.0.0
    record
    2015-04-01 · diff ↗ ·
    removed 2 exports
    kung_fu, vertical_specialisation
  • 2.1.0
    record
    2015-02-03 · diff ↗ ·
    added 1 export
    leontief_output
  • 2.0
    record
    2015-01-27 · diff ↗ ·
    added 2 exports
    leontief, vertical_specialisation
  • 1.3.2
    record
    2014-12-10 · diff ↗ ·
    added 1 export
    load_tables_vectors
  • 1.2
    record
    2014-08-29 · diff ↗
  • 1.1
    record
    2014-08-27
  • R
    R 3.1.0 released · 2014-04-10

Package metadata

First published
2014-08-27
Total releases
13 / 12 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
0.6 KB / 1 file
Download size
43 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("decompr")

The package provides a citation file, so citation() returns the authors' own entry.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for decompr version 6.9.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy