Calculate the total number of hours worked each year
calc_total_hours_worked.Rd
Calc...
Usage
calc_total_hours_worked(
.df,
yearly_working_hours_ilo_col = MWTools::ilo_cols$yearly_working_hours_ilo_col,
employed_persons_ilo_col = MWTools::ilo_cols$employed_persons_ilo_col,
total_wk_hrs_ilo_col = MWTools::hmw_analysis_constants$total_wk_hrs_ilo_col
)
Arguments
- .df
The ILO labor data filled (held constant back to 1960 from the earliest year of data). Usually produced by calling the
add_hmw_region_codes
, andfill_ilo_data
functions in sequence on the raw FAO data.- yearly_working_hours_ilo_col, employed_persons_ilo_col
See
MWTools::ilo_cols
.- total_wk_hrs_ilo_col
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)
working_hours_data <- hmw_data |>
add_hmw_region_codes() |>
fill_ilo_data() |>
calc_total_hours_worked()