specify_elect_heat_fossil_fuels.Rd
This function specified the electricity and heat energy products by the type of energy carrier that has been used to produce them, at the moment "Oil products", "Coal products", "Natural gas", and "Other products". To do so, the code keeps the main activity and autoproducer electricity, heat and CHP activities, and calculates the inputs shares by each of the four product types group. The same shares are ascribe to electricity and heat outputs. New industries that are now specified as function of the product type they take as input.
specify_elect_heat_fossil_fuels(
.tidy_iea_df,
country = IEATools::iea_cols$country,
method = IEATools::iea_cols$method,
energy_type = IEATools::iea_cols$energy_type,
last_stage = IEATools::iea_cols$last_stage,
year = IEATools::iea_cols$year,
ledger_side = IEATools::iea_cols$ledger_side,
flow_aggregation_point = IEATools::iea_cols$flow_aggregation_point,
flow = IEATools::iea_cols$flow,
product = IEATools::iea_cols$product,
e_dot = IEATools::iea_cols$e_dot,
unit = IEATools::iea_cols$unit,
transformation_processes = IEATools::aggregation_flows$transformation_processes,
eiou_flows = IEATools::aggregation_flows$energy_industry_own_use,
main_act_prod_elect = IEATools::main_act_plants$main_act_prod_elect_plants,
main_act_prod_chp = IEATools::main_act_plants$main_act_prod_chp_plants,
main_act_prod_heat = IEATools::main_act_plants$main_act_prod_heat_plants,
autoprod_elect = "Autoproducer electricity plants",
autoprod_chp = "Autoproducer CHP plants",
autoprod_heat = "Autoproducer heat plants",
oil_products = "Oil products",
coal_products = "Coal products",
natural_gas = "Natural gas",
other_products = "Other products",
product_type = "Product type",
share_inputs_from_Func = "Share_inputs_from_Func",
negzeropos = ".negzeropos"
)
Name of the .tidy_iea_df
for which electricity and heat products
need to be specified with origin product type.
See IEATools::iea_cols
.
Name of transformation process flows in data frame. Default is IEATools::aggregation_flows$transformation_processes.
Name of energy industry own use flows in data frame. Default is IEATools::aggregation_flows$energy_industry_own_use.
Name of electricity producing plants. Default is IEATools::main_act_plants$main_act_prod_elect_plants.
Name of CHP producing plants. Default is IEATools::main_act_plants$main_act_prod_chp_plants
Name of heat producing plants. Default is IEATools::main_act_plants$main_act_prod_heat_plants
Name of autoproducer electricity plants. Default is "Autoproducer electricity plants".
Name of autoproducer CHP plants. Default is "Autoproducer CHP plants".
Name of autoproducer heat plants. Default is "Autoproducer heat plants".
Name of oil products. Default is "Oil products".
Name of coal products. Default is "Coal products".
Name of natural gas. Default is "Natural gas".
Name of other products. Default is "Other products".
Name of a temporary column. Default is "Product type".
Name of a temporary column. Default is "Share_inputs_from_Func".
Temporary column name. Default is ".netzeropos".
Returns a .tidy_iea_df
with electricity and heat products specified
with origin product type.
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() %>%
specify_elect_heat_fossil_fuels()
#> # A tibble: 110 × 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
#> # ℹ 100 more rows
#> # ℹ 5 more variables: Flow.aggregation.point <chr>, Flow <chr>, Product <chr>,
#> # Unit <chr>, E.dot <dbl>