View source: R/matrix_blocks.R
bkd | R Documentation |
Produces a block diagonal matrix version of block matrix, i.e., a matrix in which the diagonal blocks are non-zero and the off-diagonal blocks are zero
bkd(df)
df |
A block matrix with named rows and columns. Names of countries and sectors are automatically identified. |
Block diagonal version of the original matrix.
wio <- make_wio("wiodtest", quiet = TRUE)
# Block diagonal version of Y (coincides with Yd)
bkd(wio$Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.