Learn R Programming

exvatools (version 0.9.0)

bkoffd: 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)

Value

Block off-diagonal version of the original matrix.

Arguments

df

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

Examples

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

Run the code above in your browser using DataLab