View source: R/calc_hmw_functions.R
add_hmw_region_codes | R Documentation |
...
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
)
.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 |
country_col , country_code_col , country_incl_col , hmw_region_code_col , mapping_sheet |
See |
sex_ilo_col , yearly_working_hours_ilo_col , employed_persons_ilo_col |
See |
sector_col , year |
See |
yes_const |
See |
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_humans_data <- hmw_data |>
add_hmw_region_codes()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.