Skip to content

diagonals

Block Diagonal Extraction or Replacement

v6.4.0 · Jun 19, 2022 · GPL-3

Description

Several tools for handling block-matrix diagonals and similar constructs are implemented. Block-diagonal matrices can be extracted or removed using two small functions implemented here. In addition, non-square matrices are supported. Block diagonal matrices occur when two dimensions of a data set are combined along one edge of a matrix. For example, trade-flow data in the 'decompr' and 'gvc' packages have each country-industry combination occur along both edges of the matrix.

Downloads

1.1K

Last 30 days

3633rd

3.3K

Last 90 days

19.7K

Last year

Trend: -1.1% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (3)

imports

Dependency Network

Dependencies Reverse dependencies HLMdiag PDMIF gvc diagonals

Version History

new 6.4.0 Mar 10, 2026
updated 6.4.0 ← 6.0.0 diff Jun 18, 2022
updated 6.0.0 ← 5.2.0 diff May 7, 2021
updated 5.2.0 ← 1.0.1 diff Apr 27, 2020
updated 1.0.1 ← 0.4.0 diff Jan 8, 2020
updated 0.4.0 ← 0.3.0 diff Oct 4, 2015
updated 0.3.0 ← 0.2.0 diff Jun 14, 2015
new 0.2.0 May 28, 2015