Map ILO broad sectors HMW analysis sector categories, which correspond to activity levels (Primary, Secondary, and Sedentary).

add_hmw_analysis_sectors(
  .df,
  hmw_analysis_data_path = MWTools::hmw_analysis_data_path(),
  sector_col = MWTools::mw_constants$sector_col,
  hmw_sector_map_sheet = MWTools::hmw_analysis_constants$hmw_sector_map_sheet,
  agriculture = MWTools::mw_sectors$agriculture_broad.sector,
  hmw_analysis_sector_col = MWTools::mw_sectors$hmw_analysis_sector_col,
  industry = MWTools::mw_sectors$industry_broad.sector,
  services = MWTools::mw_sectors$services_broad.sector
)

Arguments

.df

A data frame containing the number of hours worked by broad sector (Agriculture, Industry, and Services). Usually produced by calling the add_hmw_region_codes, fill_ilo_data, calc_total_hours_worked, and get_broad.sector_data functions in sequence on the raw FAO data.

hmw_analysis_data_path

See MWTools::hmw_analysis_data_path().

sector_col

See MWTools::mw_constants.

hmw_sector_map_sheet

See MWTools::hmw_analysis_constants.

hmw_analysis_sector_col, agriculture, industry, services

See MWTools::mw_sectors.

Examples

working_hours_activity_data <- read.csv(file = MWTools::hmw_test_data_path()) %>%
  add_hmw_region_codes() %>%
  fill_ilo_data() %>%
  calc_total_hours_worked() %>%
  get_broad.sector_data() %>%
  add_hmw_analysis_sectors()