bktt {exvatools} | R Documentation |
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.
bktt(df)
df |
A square block matrix with named rows and columns.
Names of countries and sectors are automatically identified. Unlike
|
Block transposed version of df
with elements transposed.
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]