move_to_exergy: Move from all exergy quantities to all energy quantities in...

View source: R/extend_to_exergy.R

move_to_exergyR Documentation

Move from all exergy quantities to all energy quantities in energy conversion chains

Description

Converts energy conversion chains represented by the matrices in the data frame of psut_energy from energy quantities to exergy quantities.

Usage

move_to_exergy(
  psut_energy,
  phi_vecs,
  countries,
  country = IEATools::iea_cols$country,
  phi_colname = IEATools::phi_constants_names$phi_colname
)

Arguments

psut_energy

A wide-by-matrices data frame of energy conversion chain data.

phi_vecs

A data frame of vectors of phi (exergy-to-energy ratios)

countries

The countries for which this task should be performed.

country

See IEATools::iea_cols.

phi_colname

See IEATools::phi_constants.

Details

The steps in this calculation are to join phi_vecs to psut_energy. Thereafter, we call into the IEATools package to do the matrix multiplications.

Value

A version of psut_energy with additional rows


MatthewHeun/SEAPSUTWorkflow documentation built on April 22, 2022, 2:21 p.m.