| specify_TJ | R Documentation |
Primary-final-useful (PFU) data from calc_hmw_pfu() and calc_amw_pfu()
are in EJ.
This function converts entries in the energy_col from EJ (exajoules) to TJ (terajoules) and
changes the units_col from "EJ" to "TJ".
specify_TJ(
.df,
energy_col = MWTools::mw_cols$e_dot,
units_col = MWTools::mw_cols$unit
)
.df |
A data frame with |
energy_col, units_col |
See |
Prior to converting the energy_col from EJ to TJ,
the units_col is verified to contain only "EJ".
An error is thrown if any units_col entry is not in EJ.
.df with energy column converted from EJ to TJ.
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_data %>%
calc_hmw_pfu() %>%
specify_TJ()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.