View source: R/transform_helpers.R
calc_national_production_by_product | R Documentation |
The function calculates the national production by product. Included flows are flows belonging to either the R or V matrices, excluding import flows.
calc_national_production_by_product(
.tidy_iea_df,
ledger_side = IEATools::iea_cols$ledger_side,
flow_aggregation_point = IEATools::iea_cols$flow_aggregation_point,
flow = IEATools::iea_cols$flow,
e_dot = IEATools::iea_cols$e_dot,
matnames = IEATools::mat_meta_cols$matnames,
V_matrix = IEATools::psut_cols$V,
R_matrix = IEATools::psut_cols$R,
imports = IEATools::interface_industries$imports,
National_Production_By_Product = "National_Production_By_Product"
)
.tidy_iea_df |
The |
ledger_side, flow_aggregation_point, flow, e_dot |
See |
matnames |
The column name for matrices names.
Default is |
V_matrix |
The name of the V matrix.
Default is |
R_matrix |
The name of the R matrix.
Default is |
imports |
The name of imports flows in the |
National_Production_By_Product |
The name of the column containing national production for each product, by country. Default is "National_Production_By_Product". |
Note: the function needs to have a column indicating matrix names added first, most likely using the IEATools::add_psut_matnames()
function.
A data frame that returns the national production by product.
tidy_AB_data %>%
IEATools::add_psut_matnames() %>%
calc_national_production_by_product() %>%
print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.