View source: R/matrix_blocks.R
bkoffd | R Documentation |
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.
bkoffd(df)
df |
A block matrix with named rows and columns. Names of countries and sectors are automatically identified. |
Block off-diagonal version of the original matrix.
wio <- make_wio("wiodtest", quiet = TRUE)
# Block off-diagonal version of Y (coincides with Ym)
bkoffd(wio$Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.