Skip to content

diagonals

6.4.0Package record

Block Diagonal Extraction or Replacement

3packages depend
15.9Kdownloads / year
80.6%test coverage
13/13flavors OK

Overview

About

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.

Changes in 6.4.0
  • redo documentation
  • add ORCID
  • switch from Travis to GitHub Actions
  • various URL updates

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 56 s · 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.4.0
READMEYes · 190 wordsVignettesYes · 1 · dynamicNEWSYes · 33% structured · mentions 6.4.0Citation fileYes · software entry onlyWebsiteYes
Help pages
3includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
50%
Documented parameters
100%
Return-value docs
0%
Help pages citing references
0%
Vignettes (1)

Downloads

15.9K
CRAN downloads in the past year
Rank #3,180 · ~44/day · ~1.3K/mo
Daily download trend is not available in this view yet.
1.5K30 days
3.8K90 days
15.9K1 year
Compare downloads with other packages →
Also on335 r2u7 autocran109 c2d4u

Repository

2Stars
0Forks
0Open issues
0Open PRs
5Releases
235Commits
1Commit identities
235 commits · Last activity 2022-06-19
Responsiveness
not measured

Stars over time

2022-06-01 · 22026-07-07 · 2
PracticesBeta

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

Checks run against github.com/bquast/diagonals 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

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

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing diagonals adds no packages beyond those that come with R.

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

People & History

People (1)
Author, Maintainer since 0.2.0 (2015)
Releases (7)

Pick two releases to compare their code metrics.

  • 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.0Latest
    record
    2022-06-19 · current release · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 6.0.0
    record
    2021-05-08 · diff ↗
  • 5.2.0
    record
    2020-04-28 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.1
    record
    2020-01-09 · diff ↗
  • 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
  • R
    R 3.3.0 released · 2016-05-03
  • 0.4.0
    record
    2015-10-05 · diff ↗
Show 3 earlier eventsHide 3 earlier events
  • 0.3.0
    record
    2015-06-15 · diff ↗ ·
    removed 4 exports
    block_matrix, minus_block_matrix, minus_rectangle_matrix, rectangle_matrix
    added 3 exports
    fatdiag<-, fatdiag, split_vector
  • 0.2.0
    record
    2015-05-29
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-05-29
Total releases
7 / 11 yrs
License
GPL-3 OSI
Minimum R
≥ 2.10
Download size
11 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("diagonals")

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 diagonals version 6.4.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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