international_bunkers_to_balancing: Moves international bunkers flows to the Balancing matrix

View source: R/cleans.R

international_bunkers_to_balancingR Documentation

Moves international bunkers flows to the Balancing matrix

Description

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.

Usage

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"
)

Arguments

.tidy_iea_df

The .tidy_iea_df for which Stock changes flows need to be sent to the Balancing matrix.

flow, e_dot, ledger_side

See IEATools::iea_cols.

matnames

The column name of the column having matrices names. Default is IEATools::mat_meta_cols$matnames.

international_marine_bunkers

The name of the international marine bunkers flows in the .tidy_iea_df. Default is IEATools::interface_industries$international_marine_bunkers.

international_aviation_bunkers

The name of the international aviation bunkers flows in the .tidy_iea_df. Default is IEATools::interface_industries$international_aviation_bunkers.

balancing_matrix

The name of the Balancing matrix. Default is "B".

Details

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.

Value

The new .tidy_iea_df with international bunkers ascribed to the Balancing matrix.


earamendia/ECCTools documentation built on May 12, 2023, 2:12 a.m.