View source: R/transforms_to_gma.R
specify_MR_V | R Documentation |
This function specified the Multi-Regional Supply (V) matrix. Only flows that belong to the Multi-Regional Supply matrix are returned, other flows are filtered out. Exceptions are flows akin to supply (with E.dot < 0) but that have been previously re-directed to the Balancing matrix by the analyst - those are also kept.
specify_MR_V(
.tidy_iea_df,
V_matrix = IEATools::psut_cols$V,
balancing_matrix = "B",
matnames = IEATools::mat_meta_cols$matnames,
imports = IEATools::interface_industries$imports,
country = IEATools::iea_cols$country,
flow = IEATools::iea_cols$flow,
product = IEATools::iea_cols$product,
e_dot = IEATools::iea_cols$e_dot,
aggregate_country_name = "World"
)
.tidy_iea_df |
The |
V_matrix |
The name of the V matrix.
Default is |
balancing_matrix |
The name of the Balancing matrix. Default is "B". |
matnames |
The name of the matrix names column.
Default is |
imports |
The name of the Imports flows in the |
country, flow, product, e_dot |
See |
aggregate_country_name |
The name of the new region that gathers all flows of the |
The specification process is to modify both the flow and the product produced
so that the producing country is added as prefix using brackets first.
Note: matrix names need to be added, most likely using the IEATools::add_psut_matnames
, prior to using the function.
A .tidy_iea_df
representing the Multi-Regional Supply (V) matrix, with all flows specified by country.
tidy_AB_data %>%
IEATools::add_psut_matnames() %>%
specify_MR_V() %>%
print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.