calc_eta_fu_phi_u_vecs: Add efficiency ('eta') and exergy-to-energy ratio ('phi')...

View source: R/extend_to_useful.R

calc_eta_fu_phi_u_vecsR Documentation

Add efficiency (eta) and exergy-to-energy ratio (phi) vectors to a data frame.

Description

This function adds final-to-useful efficiency (eta) and exergy-to-energy ratio vectors to the previously-created WithCmats target.#'

Usage

calc_eta_fu_phi_u_vecs(
  completed_efficiency_tables,
  completed_phi_tables,
  countries,
  country = IEATools::iea_cols$country,
  year = IEATools::iea_cols$year,
  c_source = IEATools::template_cols$c_source,
  eta_fu_source = IEATools::template_cols$eta_fu_source,
  .values = IEATools::template_cols$.values,
  eta_fu = IEATools::template_cols$eta_fu,
  phi_u = IEATools::template_cols$phi_u,
  phi_u_source = IEATools::phi_constants_names$phi_source_colname
)

Arguments

completed_efficiency_tables

The completed efficiency tables from which efficiency (eta_fu) vectors should be created. This data frame is most likely to be the CompletedEfficiencyTables target.

completed_phi_tables

The completed phi tables from which exergy-to-energy ratio vectors (phi_u) should be created.This data frame is most likely to be the CompletedPhiTables target.

countries

The countries for which eta_fu and phi_u vectors should be formed.

country, year

See IEATools::ieacols.

c_source, eta_fu_source, .values, eta_fu, phi_u

See IEATools::template_cols.

phi_u_source

See IEATools::phi_constants_names.

Value

A data frame with eta_fu and phi_u vectors added as columns.


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