convert_fuel_gasoline_into_motor_gasoline | R Documentation |
This function converts flows of the "Gasoline type jet fuel" product into flows of "Motor gasoline excl. biofuels". The function then gathers those flows into a single new flow. Basically, it aggregates those two products and keeps the "Motor gasoline excl. biofuels" product name.
convert_fuel_gasoline_into_motor_gasoline(
.tidy_iea_df,
product = IEATools::iea_cols$product,
flow = IEATools::iea_cols$flow,
e_dot = IEATools::iea_cols$e_dot
)
.tidy_iea_df |
The |
product, e_dot, flow |
See |
A .tidy_iea_df
for which jet fuel type gasoline is converted into motor gasoline.
# Here we add a flow of "Gasoline type jet fuel":
tidy_AB_data %>%
tibble::add_row(
Country = "A",
Method = "PCM",
Energy.type = "E",
Last.stage = "Final",
Year = 2018,
Product = "Gasoline type jet fuel",
Ledger.side = "Consumption",
Flow.aggregation.point = "Industry",
Flow = "Iron and steel",
Unit = "ktoe",
E.dot = 20
) %>%
dplyr::filter(Country == "A" & stringr::str_detect(Product, "(G|g)asoline")) %>%
print()
# Then we gather both flows:
tidy_AB_data %>%
tibble::add_row(
Country = "A",
Method = "PCM",
Energy.type = "E",
Last.stage = "Final",
Year = 2018,
Product = "Gasoline type jet fuel",
Ledger.side = "Consumption",
Flow.aggregation.point = "Industry",
Flow = "Iron and steel",
Unit = "ktoe",
E.dot = 20
) %>%
dplyr::filter(Country == "A" & stringr::str_detect(Product, "(G|g)asoline")) %>%
convert_fuel_gasoline_into_motor_gasoline() %>%
print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.