To create an allocation matrix (C), rownames are taken from the Ef.product and Destination columns, and colnames are taken from the Machine and Eu.product columns.

make_C_mats(
  .fu_allocations,
  country = IEATools::iea_cols$country,
  method = IEATools::iea_cols$method,
  energy_type = IEATools::iea_cols$energy_type,
  last_stage = IEATools::iea_cols$last_stage,
  ledger_side = IEATools::iea_cols$ledger_side,
  flow_aggregation_point = IEATools::iea_cols$flow_aggregation_point,
  e_dot = IEATools::iea_cols$e_dot,
  year = IEATools::iea_cols$year,
  supply = IEATools::ledger_sides$supply,
  consumption = IEATools::ledger_sides$consumption,
  quantity = IEATools::template_cols$quantity,
  machine = IEATools::template_cols$machine,
  eu_product = IEATools::template_cols$eu_product,
  e_dot_perc = IEATools::template_cols$e_dot_perc,
  maximum_values = IEATools::template_cols$maximum_values,
  matnames = IEATools::mat_meta_cols$matnames,
  C_eiou = "C_EIOU",
  C_Y = "C_Y",
  .C = ".C"
)

Arguments

.fu_allocations

Value

a tidy data frame with metadata columns (and year) along with a C column.

Details

The .fu_alocations data frame is first made tidy by gathering all years.