exports_to_balancing | R Documentation |
This function relocates exports to the balancing matrix B. The Balancing matrix is akin to an additional final demand matrix.
exports_to_balancing(
.tidy_iea_df,
flow = IEATools::iea_cols$flow,
matnames = IEATools::mat_meta_cols$matnames,
ledger_side = IEATools::iea_cols$ledger_side,
e_dot = IEATools::iea_cols$e_dot,
exports = IEATools::interface_industries$exports,
balancing_matrix = "B"
)
.tidy_iea_df |
The |
flow |
See |
matnames |
The column name of the column containing matrices names.
Default is |
ledger_side |
See |
e_dot |
See |
exports |
The string that identifies export flows.
Default is |
balancing_matrix |
The name of the Balancing matrix. Default is "B". |
See the Balancing matrix vignette for more information.
Note: one needs to add the column containing matrices names first,
most likely using the IEATools::add_psut_matnames()
function.
A .tidy_iea_df
with Stock changes flows relocated in the Balancing matrix.
tidy_AB_data %>%
IEATools::add_psut_matnames() %>%
dplyr::filter(stringr::str_detect(Flow, "Exports")) %>%
exports_to_balancing() %>%
print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.