knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(dplyr) library(ECCTools)
The R
package ECCTools
provides tools to modify an Energy Conversion Chain (ECC) that has been previously loaded using the R
package IEATools
. The IEATools
package helps to load IEA data as well as to sort and prepare IEA data to formulate a Physical Supply Use Table framework (PSUT, see @Heun:2018). However, the IEATools
package treats imports as a supplying industry, and to this extent, adopts what we refer here to as the Free Imports Assumption: imports come for free, with no upstream associated conversion chain (and hence, neither associated environmental burden nor embodied energy consumption).
The ECCTools
package enables analysts to overcome this limitation through two different options:
The package has been designed to be used as follows.
IEATools
package. See the IEATools package documentation.transform_to_dta()
, transform_to_gma()
, or transform_to_bta()
functions.prep_psut()
function of the IEATools
package.Subsequent Energy Conversion Chain analysis can be conducted using the Recca
package. See the Recca package documentation.
The vignettes available for this package detail how to conduct the following tasks:
To illustrate how to use the package, we introduce a fictitious world consisting of two countries (A and B): welcome to the AB world!
The Energy Conversion Chain of country A is shown in the figure below:
As can be seen, the country A:
Next figure shows the Energy Conversion Chain of country B.
As can be seen, country B:
Let's now have a look to the AB data organised in a .tidy_iea_df
as provided by the IEATools
package.
# Fix product-level balances within each country tidy_AB_data %>% dplyr::glimpse()
So far so good. However, we note that although each domestic Energy Conversion Chain is balanced (supply = consumption), the global Energy Conversion Chain resulting from the addition of both domestic Energy Conversion Chains is not. Indeed:
The fact that these Energy Conversion Chains, when taken together, are unbalanced, is an attempt to represent faithfully the features of IEA data. Indeed, this type of unbalances appear when trying to build a global Energy Conversion Chain from IEA data. Our AB world example will therefore show how such inconsistencies are dealt with when working with real IEA data.
Now, some guesses about why such inconsistencies may appear in IEA data:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.