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.

Documentation

Manual: diagonals.pdf
Vignette: Fat Diagonals

Maintainer: Bastiaan Quast <bquast at gmail.com>

Author(s): Bastiaan Quast*

Install package and any missing dependencies by running this line in your R console:

install.packages("diagonals")

Depends R (>= 2.10)
Imports
Suggests testthat, knitr
Enhances
Linking to
Reverse
depends
Reverse
imports
gvc
Reverse
suggests
Reverse
enhances
Reverse
linking to

Package diagonals
Materials
URL http://qua.st/diagonals https://github.com/bquast/diagonals
Task Views
Version 0.4.0
Published 2015-10-05
License GPL-3
BugReports https://github.com/bquast/diagonals/issues
SystemRequirements
NeedsCompilation no
Citation
CRAN checks diagonals check results
Package source diagonals_0.4.0.tar.gz