specify_useful_products: Specify useful energy products

View source: R/specify.R

specify_useful_productsR Documentation

Specify useful energy products

Description

Final-to-useful machines make useful energy products. This function specifies those products to include a ⁠[from X]⁠ suffix.

Usage

specify_useful_products(
  .df,
  product = MWTools::mw_cols$product,
  stage = MWTools::mw_constants$stage_col,
  concordance_species = MWTools::conc_cols$species,
  useful = MWTools::all_stages$useful,
  notation = RCLabels::from_notation
)

Arguments

.df

A data frame, usually the output of MWTools::specify_primary_production().

product, stage

See MWTools::mw_constants.

concordance_species

See MWTools::conc_cols.

useful

See MWTools::all_stages.

notation

See RCLabels::from_notation.

Value

A data frame with

Examples

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()
amw_df <- amw_test_data_path() %>%
  read.csv() %>%
  calc_amw_pfu()
specify_energy_type_method(hmw_df, amw_df) %>%
  specify_product() %>%
  MWTools::specify_primary_production() %>%
  specify_useful_products()

EnergyEconomyDecoupling/MWTools documentation built on April 14, 2025, 9:27 a.m.