Add the regional codes used on analysis of human muscle work.
add_hmw_region_codes.Rd...
Usage
add_hmw_region_codes(
.df,
concordance_path = MWTools::fao_concordance_path(),
mapping_sheet = MWTools::conc_cols$mapping_sheet,
country_col = MWTools::conc_cols$country_col,
country_code_col = MWTools::conc_cols$country_code_col,
country_incl_col = MWTools::conc_cols$country_incl_col,
hmw_region_code_col = MWTools::conc_cols$hmw_region_code_col,
sex_ilo_col = MWTools::ilo_cols$sex_ilo_col,
sector_col = MWTools::mw_constants$sector_col,
year = MWTools::mw_cols$year,
yearly_working_hours_ilo_col = MWTools::ilo_cols$yearly_working_hours_ilo_col,
employed_persons_ilo_col = MWTools::ilo_cols$employed_persons_ilo_col,
yes_const = MWTools::amw_analysis_constants$yes_const
)Arguments
- .df
The raw ILO data, retrieved from ILOSTAT.
- concordance_path
The path to the country code concordance information. Set to the bundled information by default, retrieved using the
fao_concordance_pathfunction.- country_col, country_code_col, country_incl_col, hmw_region_code_col, mapping_sheet
See
MWTools::conc_cols.- sex_ilo_col, yearly_working_hours_ilo_col, employed_persons_ilo_col
See
MWTools::ilo_cols.- sector_col, year
- yes_const
Examples
working_humans_data <- read.csv(file = MWTools::hmw_test_data_path()) %>%
add_hmw_region_codes()