View source: R/energy_balance.R
verify_SUT_industry_production | R Documentation |
If a transformation process industry consumes energy (in the U
matrix)
but does not make energy (in the V
matrix),
it is most certainly an error.
(In contrast, there can be Industries that make energy but do not consume it,
such as Industries involved in Production.
And final demand sectors consume energy but do not produce any.)
This function emits a warning if an Industry in the U
matrix
is found to consume energy but not make energy.
Look at the industry_production_OK
column of the output to see which rows of
.sutmats
exhibit the problem.
Look at the problem_industries
column of the output to see which industries
exhibit this problem.
verify_SUT_industry_production(
.sutmats = NULL,
R = "R",
U = "U",
V = "V",
industry_production_OK = ".industry_production_OK",
problem_industries = ".problem_industries"
)
.sutmats |
an SUT-style data frame containing metadata columns
(typically |
R |
resources (R) matrix or name of the column in |
U |
use (U) matrix or name of the column in |
V |
make (V) matrix or name of the column in |
industry_production_OK |
the name of the column in the output that tells whether all industries produce something. Default is ".industry_production_OK". |
problem_industries |
the name of the column in the output that tells which transformation processes consume energy but do not produce anything. |
.sutmats
with added column named with the value of industry_production_OK
.
library(tidyr)
verify_SUT_industry_production(UKEnergy2000mats %>%
spread(key = matrix.name, value = matrix))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.