calc_U_feed_U_eiou_r_eiou | R Documentation |
U_feed
, U_eiou
, and r_eiou
matrices are calculated from U
.
All three matrices (U_feed
, U_eiou
, and r_eiou
)
have the same structure (row names, column names, row types, and column types)
as U
.
For MWTools
, there is no energy industry own use (EIOU),
so U_feed
is simply a copy of U
, and U_eiou
and r_eiou
are full of 0
s.
calc_U_feed_U_eiou_r_eiou(
.df = NULL,
U = MWTools::psut_cols$U,
U_feed = MWTools::psut_cols$U_feed,
U_eiou = MWTools::psut_cols$U_eiou,
r_eiou = MWTools::psut_cols$r_eiou
)
.df |
A PSUT data frame containing a column of |
U |
The name of the incoming |
U_feed , U_eiou , r_eiou |
Names for outgoing matrices. See |
This function employs matsindf::matsindf_apply()
internally, so
U
can be either a single matrix or the name of the U
column in .df
.
.df
with new columns for U_feed
, U_eiou
, and r_eiou
matrices.
ilo_working_hours_data <- read.csv(file = MWTools::ilo_working_hours_test_data_path())
ilo_employment_data <- read.csv(file = MWTools::ilo_employment_test_data_path())
hmw_data <- prepareRawILOData(ilo_working_hours_data = ilo_working_hours_data,
ilo_employment_data = ilo_employment_data)
hmw_df <- hmw_data %>%
calc_hmw_pfu() %>%
# Keep only a few years for speed.
dplyr::filter(Year %in% 2000:2002)
amw_df <- amw_test_data_path() %>%
read.csv() %>%
calc_amw_pfu() %>%
# Keep only a few years for speed.
dplyr::filter(Year %in% 2000:2002)
specify_energy_type_method(hmw_df, amw_df) %>%
specify_product() %>%
specify_TJ() %>%
MWTools::specify_primary_production() %>%
specify_useful_products() %>%
specify_fu_machines() %>%
specify_last_stages() %>%
MWTools::add_row_col_meta() %>%
MWTools::collapse_to_psut() %>%
calc_S_units() %>%
calc_U_feed_U_eiou_r_eiou()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.