international_bunkers_to_balancing.Rd
This function moves international bunkers flows to the Balancing matrix. The Balancing matrix is akin to an additional final demand matrix, meaning that flows akin to final demand (i.e. where stocks increase) will be positive, while flows akin to supply (i.e. where stocks decrease) will be negative.
international_bunkers_to_balancing(
.tidy_iea_df,
flow = IEATools::iea_cols$flow,
matnames = IEATools::mat_meta_cols$matnames,
e_dot = IEATools::iea_cols$e_dot,
ledger_side = IEATools::iea_cols$ledger_side,
international_marine_bunkers = "International marine bunkers",
international_aviation_bunkers = "International aviation bunkers",
balancing_matrix = "B"
)
The .tidy_iea_df
for which Stock changes flows need to be sent to the Balancing matrix.
See IEATools::iea_cols
.
The column name of the column having matrices names.
Default is IEATools::mat_meta_cols$matnames
.
The name of the international marine bunkers flows in the .tidy_iea_df
.
Default is IEATools::interface_industries$international_marine_bunkers
.
The name of the international aviation bunkers flows in the .tidy_iea_df
.
Default is IEATools::interface_industries$international_aviation_bunkers
.
The name of the Balancing matrix. Default is "B".
The new .tidy_iea_df
with international bunkers ascribed to the Balancing matrix.
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.