bktt {exvatools} | R Documentation |
Block transpose matrix with transposed blocks
Description
Block transpose matrix and then transpose each block. block(s,r)
is
transformed into block(r,s)
and then internally transposed. This is not
equivalent to directly transpose the matrix.
Usage
bktt(df)
Arguments
df |
A square block matrix with named rows and columns.
Names of countries and sectors are automatically identified. Unlike
|
Value
Block transposed version of df
with elements transposed.
See Also
Examples
wio <- make_wio("wiodtest", quiet = TRUE)
# Block-transpose Z and transpose blocks (show first elements only)
bktt(wio$Z)[1:6, 1:6]
# Note that directly transposing Z produces a different result:
t(wio$Z)[1:6, 1:6]
[Package exvatools version 0.8.0 Index]