bkoffd: Get block off-diagonal matrix

View source: R/matrix_blocks.R

bkoffdR Documentation

Get block off-diagonal matrix

Description

Produces a block off-diagonal matrix version of block matrix, i.e., a matrix in which the diagonal blocks are zero and the off-diagonal blocks are non-zero.

Usage

bkoffd(df)

Arguments

df

A block matrix with named rows and columns. Names of countries and sectors are automatically identified.

Value

Block off-diagonal version of the original matrix.

Examples

wio <- make_wio("wiodtest", quiet = TRUE)
# Block off-diagonal version of Y (coincides with Ym)
bkoffd(wio$Y)

exvatools documentation built on Sept. 17, 2024, 1:07 a.m.