View source: R/helpers_shares.R
calc_shares_heat_by_ff_group | R Documentation |
This function calculates the share of heat supplied by each fossil fuel within each fossil fuel group, for the two following fossil fuel groups "Oil and gas products", and "All fossil fuels". So it gives the share supplied by respectively Coal products, Oil products, and Natural gas, in each of those groups. The shares then add up to unity necessarily.
calc_shares_heat_by_ff_group(
.tidy_iea_df,
supply_mats_list = c(IEATools::psut_cols$V),
matnames = IEATools::mat_meta_cols$matnames,
product.group = "Product.Group",
share = "Share",
energy.stage = "Energy.stage",
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,
unit = IEATools::iea_cols$unit,
product = IEATools::iea_cols$product,
e.dot = IEATools::iea_cols$e_dot,
product_without_origin = "product_without_origin",
non_energy_uses = "Non_Energy_Uses"
)
.tidy_iea_df |
The name of the |
supply_mats_list |
The list of the supply matrices to be used for calculating the heat supply mix.
Default is |
matnames |
The name of the column containing matrices names. Default is "matnames". |
product.group |
The name of the column containing the product group name. Default is "Product.Group". |
share |
The name of the column containing the shares of each fossil fuel within the electricity supply. Default is "Share". |
energy.stage |
The name of the column containing the energy stage. Default is "Energy.stage". |
country, method, energy_type, last_stage, year, unit, product, e.dot |
See |
product_without_origin |
The name of the column containing the product name without the product origin. Default is "product_without_origin" |
non_energy_uses |
The name of the column indicating whether non-energy uses are included the calculation. Default is "Non_Energy_Uses". |
A .tidy_iea_df
with the shares of heat supply specified by fossil fuel group.
ECCTools::tidy_AB_data %>%
IEATools::add_psut_matnames() %>%
ECCTools::transform_to_dta() %>%
calc_shares_heat_by_ff_group()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.