Skip to contents

To create a combined energy conversion chain (ECC) containing both IEA and muscle work data, PSUT matrices for each ECC are summed. This function sums R, U, V, Y, U_feed, and U_eiou matrices directly. It also re-calculates the r_eiou matrix.

Usage

add_iea_mw_psut(
  .iea_psut = NULL,
  .mw_psut = NULL,
  countries,
  iea_suffix = "_iea",
  mw_suffix = "_mw",
  R = IEATools::psut_cols$R,
  U = IEATools::psut_cols$U,
  V = IEATools::psut_cols$V,
  Y = IEATools::psut_cols$Y,
  U_feed = IEATools::psut_cols$U_feed,
  U_eiou = IEATools::psut_cols$U_eiou,
  s_units = IEATools::psut_cols$s_units,
  country = IEATools::iea_cols$country,
  year = IEATools::iea_cols$year,
  method = IEATools::iea_cols$method,
  energy_type = IEATools::iea_cols$energy_type,
  last_stage = IEATools::iea_cols$last_stage,
  r_eiou = IEATools::psut_cols$r_eiou
)

Arguments

.iea_psut

An IEA PSUT data frame.

.mw_psut

A muscle work PSUT data frame.

countries

The countries to be analyzed.

iea_suffix

A suffix for IEA columns, used internally. Default is "_iea".

mw_suffix

A suffix for muscle work columns, used internally. Default is "_mw".

R

The name of the column of R matrices. Default is IEATools::psut_cols$R.

U

The name of the column of U matrices. Default is IEATools::psut_cols$U.

V

The name of the column of V matrices. Default is IEATools::psut_cols$V.

Y

The name of the column of Y matrices. Default is IEATools::psut_cols$Y.

U_feed

The name of the column of U_feed matrices. Default is IEATools::psut_cols$U_feed.

U_eiou

The name of the column of U_eiou matrices. Default is IEATools::psut_cols$U_eiou.

s_units

The name of the column of s_units matrices. Default is IEATools::psut_cols$s_units.

country

The name of the country column. Default is IEATools$iea_cols$country.

year

The name of the year column. Default is IEATools$iea_cols$year.

method

The name of the method column. Default is IEATools$iea_cols$method.

energy_type

The name of the energy type column. Default is IEATools$iea_cols$energy_type.

last_stage

The name of the last_stage column. Default is IEATools$iea_cols$last_stage.

r_eiou

The name of the r_eiou column. Default is IEATools$iea_cols$r_eiou.

Value

A data frame of summed matrices.

Details

If either of iea_psut or .mw_psut are NULL, the other is returned.