specify_primary_production | R Documentation |
Adds rows for biomass from resources.
specify_primary_production(
.df,
product = MWTools::mw_cols$product,
primary = MWTools::all_stages$primary,
stage = MWTools::mw_constants$stage_col,
notation = RCLabels::from_notation,
resources = MWTools::mw_sectors$resources_sector
)
.df |
A muscle work data frame with products already specified,
usually by |
product |
See |
primary |
See |
stage |
See |
notation |
The notation to be used for primary energy product specification.
Default is |
resources |
See |
If no primary rows are found
(probably because .df
has no rows),
.df
is returned unmodified.
A data frame with primary production specified.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.