specify_other_elec_heat_production: Specifies remaining electricity and heat production flows

View source: R/specify_elect_heat.R

specify_other_elec_heat_productionR Documentation

Specifies remaining electricity and heat production flows

Description

This function specifies electricity and heat production flows (i.e. positive flows in the transformation processes flow aggregation point) that are not yet specified by calling the energy product respectively "Electricity [from Other processes⁠]⁠ and "Heat [from Other processes⁠]⁠.

Usage

specify_other_elec_heat_production(
  .tidy_iea_df,
  flow_aggregation_point = IEATools::iea_cols$flow_aggregation_point,
  flow = IEATools::iea_cols$flow,
  e_dot = IEATools::iea_cols$e_dot,
  product = IEATools::iea_cols$product,
  transformation_processes = IEATools::aggregation_flows$transformation_processes,
  negzeropos = ".negzeropos"
)

Arguments

.tidy_iea_df

The .tidy_iea_df for which non-specified electricity and heat production flows need to be specified.

flow_aggregation_point, flow, e_dot, product

See IEATools::iea_cols.

transformation_processes

The name of the transformation processes in the flow aggregation point column. Default is IEATools::aggregation_flows$transformation_processes.

negzeropos

Temporary column name. Default is ".netzeropos".

Value

Returns a tidy data frame with all electricity and heat production flows specified (products are specified).

Examples

A_B_path <- system.file("extdata/A_B_data_full_2018_format.csv", package = "ECCTools")
IEATools::load_tidy_iea_df(A_B_path) %>%
IEATools::specify_all() %>%
tibble::add_row(
Country = "A",
Method = "PCM",
Energy.type = "E",
Last.stage = "Final",
Year = 2018,
Ledger.side = "Supply",
Unit = "ktoe",
Flow.aggregation.point = "Transformation processes",
Flow = "Heat pumps",
Product = "Heat",
E.dot = 82) %>%
specify_other_elec_heat_production()

earamendia/ECCTools documentation built on May 12, 2023, 2:12 a.m.