specify_other_elec_heat_production.Rd
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]
.
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"
)
The .tidy_iea_df
for which non-specified electricity and heat production flows need to be specified.
See IEATools::iea_cols
.
The name of the transformation processes in the flow aggregation point column. Default is IEATools::aggregation_flows$transformation_processes.
Temporary column name. Default is ".netzeropos".
Returns a tidy data frame with all electricity and heat production flows specified (products are specified).
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()
#> # A tibble: 103 × 11
#> Country Method Energy.type Last.stage Year Ledger.side
#> <chr> <chr> <chr> <chr> <dbl> <chr>
#> 1 A PCM E Final 2018 Consumption
#> 2 A PCM E Final 2018 Consumption
#> 3 A PCM E Final 2018 Consumption
#> 4 A PCM E Final 2018 Consumption
#> 5 A PCM E Final 2018 Consumption
#> 6 A PCM E Final 2018 Consumption
#> 7 A PCM E Final 2018 Consumption
#> 8 A PCM E Final 2018 Consumption
#> 9 A PCM E Final 2018 Consumption
#> 10 A PCM E Final 2018 Consumption
#> # ℹ 93 more rows
#> # ℹ 5 more variables: Flow.aggregation.point <chr>, Flow <chr>, Product <chr>,
#> # Unit <chr>, E.dot <dbl>