View source: R/transforms_to_gma.R
specify_MR_R | R Documentation |
This function specified the Multi-Regional Resources matrix. Only flows that belong to the Multi-Regional Resources matrix are returned, other flows are filtered out.
specify_MR_R(
.tidy_iea_df,
R_matrix = IEATools::psut_cols$R,
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,
aggregate_country_name = "World"
)
.tidy_iea_df |
The |
R_matrix |
The name of the R matrix.
Default is |
matnames |
The name of the matrix names column.
Default is |
imports |
The name of the Imports flows in the |
country, flow, product |
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 Resources matrix, with all flows specified by country.
tidy_AB_data %>%
IEATools::add_psut_matnames() %>%
specify_MR_R() %>%
print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.