Aggregate ILO and FAO country data into IEA country groupings
aggcountries_mw_to_iea.RdThis function reads an exemplar table containing a countries country code and the country code associated with the territory that the IEA data was recorded in for the years 1960 - 2020. A country as defined by it's territorial boundaries in 2020 may have had it's energy statistics recorded in any number of regions, over any number of years.
Usage
aggcountries_mw_to_iea(
mw_df,
exemplar_table_path = PFUSetup::get_abs_paths()$exemplar_table_path,
country = IEATools::iea_cols$country,
year = IEATools::iea_cols$year,
unit = IEATools::iea_cols$unit,
e_dot = IEATools::iea_cols$e_dot,
agg_code_col = PFUPipeline::exemplar_names$agg_code_col,
region_code = PFUPipeline::exemplar_names$region_code,
exemplar_country = PFUPipeline::exemplar_names$exemplar_country,
species = MWTools::mw_constants$species,
stage_col = MWTools::mw_constants$stage_col,
sector_col = MWTools::mw_constants$sector_col
)Arguments
- mw_df
A data frame containing raw animal muscle work or human muscle work data. Usually retrieved from the
AMWPFUDataRawandHMWPFUDataRawtargets.- exemplar_table_path
- country, year, unit, e_dot
See
IEATools::iea_cols.- agg_code_col, region_code, exemplar_country
- species, stage_col, sector_col