Retrieve data with sectors organised by "Broad sector"
get_broad.sector_data.Rd
Retrieve data with sectors organised by "Broad sector"
Usage
get_broad.sector_data(
.df,
sex_ilo_col = MWTools::ilo_cols$sex_ilo_col,
sector_col = MWTools::mw_constants$sector_col
)
Arguments
- .df
A data frame containing the number of hours worked. Usually produced by calling the
add_hmw_region_codes
,fill_ilo_data
, andcalc_total_hours_worked
functions in sequence on the raw FAO data.- sex_ilo_col
See
MWTools::ilo_cols
.- sector_col
See
mWTools::mw_constants
.
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_sector_data <- hmw_data |>
add_hmw_region_codes() |>
fill_ilo_data() |>
calc_total_hours_worked() |>
get_broad.sector_data()