specify_interface_industries | R Documentation |
An interface industry is one that moves energy carriers into or out of a country.
When flow
is any of the interface industries, we need to be more specific.
If we don't separate these flow
s by product
, we run into trouble with
upstream swims (e.g., all product
s are produced even if only one is needed) and
embodied energy calculations (many types of energy are embodied, even if only one should be).
This function adds a suffix "[of Product]" to each of these interface industries.
specify_interface_industries(
.tidy_iea_df,
flow = IEATools::iea_cols$flow,
int_industries = c(IEATools::interface_industries, IEATools::tpes_flows$resources,
manufacture = "Manufacture"),
product = IEATools::iea_cols$product,
flow_notation = RCLabels::of_notation,
product_notation = RCLabels::bracket_notation
)
.tidy_iea_df |
A tidy data frame containing IEA extended energy balance data. |
flow |
The name of the flow column in |
int_industries |
A string vector of industries involved in exchanges with other countries,
bunkers, or stock changes.
Default is |
product |
The name of the product column in |
flow_notation |
The notation for the |
product_notation |
The notation for the |
Note that "Production" also needs to be specified,
but that is accomplished in the specify_primary_production()
and
specify_production_to_resources()
functions.
Resource flows and manufacture flows are included by default, because they need a place where they are specified, too.
A modified version of .tidy_iea_df
with specified interface industries.
load_tidy_iea_df() %>%
specify_interface_industries()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.