move_to_useful: Move the last stage of the energy conversion chain from final...

View source: R/extend_to_useful.R

move_to_usefulR Documentation

Move the last stage of the energy conversion chain from final stage to useful stage

Description

Extends the energy conversion chain from a final energy last stage to useful energy last stage. The last-stage-useful energy conversion chain PSUT matrices are bound as rows at the bottom of the psut_final data frame, albeit with "Useful" instead of "Final" in the Last.stage column.

Usage

move_to_useful(
  psut_final,
  C_mats,
  eta_phi_vecs,
  countries,
  country = IEATools::iea_cols$country,
  year = IEATools::iea_cols$year,
  C_Y = IEATools::template_cols$C_Y,
  C_eiou = IEATools::template_cols$C_eiou
)

Arguments

psut_final

A data frame with rows that describe the energy conversion chain with final energy as the last stage.

C_mats

A data frame with allocation matrices, probably the Cmats target.

eta_phi_vecs

A data frame with final-to-useful efficiency and exergy-to-energy ratio vectors.

countries

The countries to be analyzed.

country, year

See IEATools::iea_cols.

C_Y, C_eiou

See IEATools::template_cols.

Value

A data frame with energy conversion chain matrices with last stage as useful energy.


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