Add efficiency (eta) and exergy-to-energy ratio (phi) vectors
to a data frame.
calc_eta_fu_phi_u_vecs.RdThis 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,
matrix_class = c("matrix", "Matrix"),
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 theCompletedEfficiencyTablestarget.- 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 theCompletedPhiTablestarget.- countries
The countries for which
eta_fuandphi_uvectors should be formed.- matrix_class
The type of matrix that should be produced. One of "matrix" (the default and not sparse) or "Matrix" (which may be sparse).
- country, year
See
IEATools::ieacols.- c_source, eta_fu_source, .values, eta_fu, phi_u
- phi_u_source