diff --git a/R/zaglu_L100.FAO_SUA_PrimaryEquivalent.R b/R/zaglu_L100.FAO_SUA_PrimaryEquivalent.R index 6d658338..408dbce3 100644 --- a/R/zaglu_L100.FAO_SUA_PrimaryEquivalent.R +++ b/R/zaglu_L100.FAO_SUA_PrimaryEquivalent.R @@ -74,6 +74,15 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { All_Bal_element <- levels(GCAMDATA_FAOSTAT_SUA_195Regs_530Items_2010to2019$element) All_Bal_element <- factor(All_Bal_element, levels = All_Bal_element) + # Bilateral trade item indicator is added to SUA_item_code_map + # filter GCAMDATA_FAOSTAT_BiTrade_194Regs_400Items_2010to2020 to only include bilateral trade item to be + # consistent with GCAMDATA_FAOSTAT_SUA_195Regs_530Items_2010to2019 + BilaterialTrade_ItemCode <- SUA_item_code_map %>% filter(TM == TRUE) %>% distinct(item_code) %>% pull + GCAMDATA_FAOSTAT_BiTrade_194Regs_400Items_2010to2020 %>% + filter(item_code %in% BilaterialTrade_ItemCode) -> + GCAMDATA_FAOSTAT_BiTrade_194Regs_400Items_2010to2020 + SUA_item_code_map %>% select(item, item_code) -> SUA_item_code_map + # Section1: [2010-2019] Region aggregation of supply-utilization-accounting data ---- # Note: the volume of data in this processing is quite large. Therefore we took @@ -114,7 +123,8 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { group_by(GCAM_region_ID, item_code, year) %>% summarize(value = sum(value), .groups = "drop") %>% ungroup() %>% - mutate(value = -value / 1000.0) -> + #mutate(value = -value / 1000.0) -> + mutate(value = -value) -> DF_INTRA_REG_TRADE # SUA has fewer items and years than the bilateral data set and in addition @@ -577,7 +587,7 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { filter(!is.na(value)) -> FBSH_CB - # asssert mapping is good + # assert mapping is good assertthat::assert_that( Mapping_item_FBS_GCAM %>% filter(!is.na(GCAM_commodity)) %>% distinct(item_code) %>% pull() %in% @@ -606,7 +616,9 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { filter(!is.na(value), element == "Production") %>% inner_join( Mapping_SUA_PrimaryEquivalent %>% filter(source_primary == T) %>% - distinct(GCAM_commodity, item = source_item), by = "item") %>% + distinct(GCAM_commodity, item = source_item) %>% + left_join_error_no_match(SUA_item_code_map, by = "item") %>% select(-item), + by = "item_code") %>% left_join_error_no_match(AGLU_ctry %>% select(area = FAO_country, iso), by = "area") %>% left_join_error_no_match(iso_GCAM_regID %>% select(iso, GCAM_region_ID), by = "iso") %>% left_join_error_no_match(GCAM_region_names, by = "GCAM_region_ID") %>% @@ -757,16 +769,19 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { Primary_Item_CROP <- FAO_ag_items_PRODSTAT %>% - select(item, GCAM_commodity, GCAM_subsector) %>% + select(item, item_code, GCAM_commodity, GCAM_subsector) %>% filter(!is.na(item), !is.na(GCAM_commodity)) %>% # Fodder grass has a duplicate as it mapped to different GTAP crops distinct %>% mutate(CropMeat = if_else(GCAM_commodity %in% c("FodderGrass", "FodderHerb"), "Crop_Fodder", "Crop_NonFodder")) assertthat::assert_that( - all(Primary_Item_CROP %>% filter(CropMeat == "Crop_NonFodder") %>% pull(item) %in% - c(Mapping_SUA_PrimaryEquivalent %>% filter(source_primary == T) %>% - distinct(item = source_item) %>% pull)), + all(Primary_Item_CROP %>% filter(CropMeat == "Crop_NonFodder") %>% pull(item_code) %in% + c(Mapping_SUA_PrimaryEquivalent %>% + filter(source_primary == T) %>% + distinct(item = source_item) %>% + left_join_error_no_match(SUA_item_code_map, by = "item") %>% pull(item_code) ) + ), msg = "Inconsistent mapping of primary crops between FAO_ag_items_PRODSTAT and Mapping_SUA_PrimaryEquivalent" ) Primary_Item_MEAT <- @@ -778,6 +793,7 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { c(FAO_an_items_PRODSTAT %>% filter(!is.na(GCAM_commodity)) %>% distinct(GCAM_commodity) %>% pull))%>% + left_join_error_no_match(SUA_item_code_map, by = "item") %>% mutate(CropMeat = "Meat") # 5.2. Get primary production for all ---- @@ -849,8 +865,9 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { # Keep subsector info for crops inner_join(Primary_Item_CROP %>% bind_rows(Primary_Item_MEAT %>% - mutate(GCAM_subsector = GCAM_commodity)), - by = "item") %>% + mutate(GCAM_subsector = GCAM_commodity)) %>% + select(-item), + by = "item_code") %>% # add in iso and gcam regions ID left_join_error_no_match(Area_Region_Map, by = "area_code") -> FAO_AgProd_Kt_All @@ -881,18 +898,18 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { ## b. All area harvested ---- assertthat::assert_that( - all(Primary_Item_CROP %>% pull(item) %in% + all(Primary_Item_CROP %>% pull(item_code) %in% c(FAO_AgProd_Kt_Area_Kha %>% filter(item_set %in% c("QCL_COMM_CROP_PRIMARY", "QCL_COMM_CROP_PRIMARY_FODDER")) %>% - pull(item)) ), + pull(item_code)) ), msg = "Not all required primary crop items included in FAO_AgProd_Kt_Area_Kha" ) FAO_AgProd_Kt_Area_Kha %>% filter(element == "Area harvested") %>% select(c(names(FAO_SUA_Kt_2010to2019), "item")) %>% # Keep subsector info for crops - inner_join(Primary_Item_CROP, by = "item") %>% + inner_join(Primary_Item_CROP %>% select(-item), by = "item_code") %>% # add in iso and gcam regions ID left_join_error_no_match(Area_Region_Map %>% select(-region), by = "area_code") -> FAO_AgArea_Kha_All @@ -911,11 +928,12 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { select(GCAM_commodity, item = source_item) %>% bind_rows(Mapping_SUA_PrimaryEquivalent %>% select(GCAM_commodity, item = sink_item)) %>% - distinct() -> + distinct() %>% + left_join_error_no_match(SUA_item_code_map, by = "item") -> SUA_Items_GCAM assertthat::assert_that( - SUA_Items_GCAM %>% distinct(item) %>% nrow() == SUA_Items_GCAM %>% nrow(), + SUA_Items_GCAM %>% distinct(item_code) %>% nrow() == SUA_Items_GCAM %>% nrow(), msg = "Check duplicates in Mapping_SUA_PrimaryEquivalent SUA items" ) @@ -923,13 +941,13 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { # (e.g., wine, infant food, or other nonfood items etc.) SUA_item_code_map %>% - filter(!item %in% unique(SUA_Items_GCAM$item)) -> SUA_Items_NonGCAM + filter(!item_code %in% unique(SUA_Items_GCAM$item_code)) -> SUA_Items_NonGCAM # b. There are 426 FAO food items, all included in FAO_SUA_Kt_2010to2019 (530 items) # SUA_Items_Food includes both GCAM and NonGCAM(NEC) SUA_item_code_map %>% filter(item_code %in% unique(GCAMDATA_FAOSTAT_MacroNutrientRate_179Regs_426Items_2010to2019Mean$item_code)) %>% - left_join(SUA_Items_GCAM, by = "item") %>% + left_join(SUA_Items_GCAM %>% select(-item), by = "item_code") %>% # For NA GCAM_commodity: not elsewhere classified (NEC) # So we would know % of food calories not included in GCAM commodities mutate(GCAM_commodity = if_else(is.na(GCAM_commodity), "NEC", GCAM_commodity)) -> @@ -963,11 +981,12 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { tibble(macronutrient = c("calperg", "fatperc", "proteinperc"))) %>% left_join( GCAMDATA_FAOSTAT_MacroNutrientRate_179Regs_426Items_2010to2019Mean %>% + select(-item) %>% tidyr::gather(macronutrient, macronutrient_value, calperg:proteinperc), - by = c("area_code", "item_code", "item", "macronutrient") + by = c("area_code", "item_code", "macronutrient") ) %>% - left_join_error_no_match(SUA_food_macronutrient_rate_World, - by = c("item_code", "item", "macronutrient")) %>% + left_join_error_no_match(SUA_food_macronutrient_rate_World %>% select(-item), + by = c("item_code", "macronutrient")) %>% mutate(macronutrient_value = if_else(is.na(macronutrient_value), macronutrient_value_World, macronutrient_value), @@ -989,8 +1008,8 @@ module_aglu_L100.FAO_SUA_PrimaryEquivalent <- function(command, ...) { # This will be used later as an upper bound to improve the data GCAMDATA_FAOSTAT_MacroNutrientRate_179Regs_426Items_2010to2019Mean %>% tidyr::gather(macronutrient, macronutrient_value, calperg:proteinperc) %>% - left_join_error_no_match(SUA_Items_Food, - by = c("item_code", "item")) %>% + left_join_error_no_match(SUA_Items_Food %>% select(-item), + by = c("item_code")) %>% group_by(GCAM_commodity, macronutrient) %>% summarise(max_macronutrient_value = max(macronutrient_value), .groups = "drop") -> FAO_Food_MacronutrientRate_2010_2019_MaxValue diff --git a/inst/extdata/aglu/FAO/SUA_item_code_map.csv b/inst/extdata/aglu/FAO/SUA_item_code_map.csv index 980a4b3b..00a84d65 100644 --- a/inst/extdata/aglu/FAO/SUA_item_code_map.csv +++ b/inst/extdata/aglu/FAO/SUA_item_code_map.csv @@ -3,538 +3,538 @@ # Units: NA # Description: Ideally we just use SUA (supply utilization accounts) item names directly. However, given the volume of data # it helps to use item_code to reduce the size of the input data as well as speed up processing. We will then need this mapping -# to ultimately translate back to item names. +# to ultimately translate back to item names. TM is TRUE when bilateral data was used for the item. # Last update: 8-15-2022 (XZ) -# Column types: ci +# Column types: cil # ---------- -item,item_code -Wheat,15 -"Rice, paddy",27 -Barley,44 -Beer of barley,51 -Maize,56 -"Oil, maize",60 -Rye,71 -Oats,75 -Millet,79 -Sorghum,83 -Buckwheat,89 -Quinoa,92 -Fonio,94 -Triticale,97 -Canary seed,101 -"Grain, mixed",103 -Potatoes,116 -Sweet potatoes,122 -Cassava,125 -Roots and tubers nes,149 -Sugar beet,157 -Sugar crops nes,161 -Sugar Raw Centrifugal,162 -Molasses,165 -"Beans, dry",176 -"Broad beans, horse beans, dry",181 -"Peas, dry",187 -Chick peas,191 -Lentils,201 -Bambara beans,203 -Vetches,205 -"Cashew nuts, with shell",217 -Chestnut,220 -"Almonds, with shell",221 -"Walnuts, with shell",222 -Pistachios,223 -Kola nuts,224 -"Hazelnuts, with shell",225 -Areca nuts,226 -Nuts nes,234 -Soybeans,236 -"Oil, groundnut",244 -Coconuts,249 -"Oil, coconut (copra)",252 -"Oil, palm",257 -"Oil, palm kernel",258 -Olives,260 -"Oil, olive, virgin",261 -Karite nuts (sheanuts),263 -Sunflower seed,267 -"Oil, sunflower",268 -Rapeseed,270 -"Oil, rapeseed",271 -"Oil, safflower",281 -Sesame seed,289 -"Oil, sesame",290 -Mustard seed,292 -Poppy seed,296 -Cottonseed,329 -"Oil, cottonseed",331 -Linseed,333 -"Oil, linseed",334 -Oilseeds nes,339 -Cabbages and other brassicas,358 -Artichokes,366 -Asparagus,367 -Lettuce and chicory,372 -Spinach,373 -Tomatoes,388 -Cauliflowers and broccoli,393 -"Pumpkins, squash and gourds",394 -Cucumbers and gherkins,397 -Eggplants (aubergines),399 -"Chillies and peppers, green",401 -"Onions, shallots, green",402 -"Onions, dry",403 -Garlic,406 -"Leeks, other alliaceous vegetables",407 -"Beans, green",414 -"Peas, green",417 -Carrots and turnips,426 -"Maize, green",446 -Mushrooms and truffles,449 -"Vegetables, fresh nes",463 -Bananas,486 -Plantains and others,489 -Oranges,490 -"Tangerines, mandarins, clementines, satsumas",495 -Lemons and limes,497 -Grapefruit (inc. pomelos),507 -Apples,515 -Pears,521 -Quinces,523 -Apricots,526 -"Cherries, sour",530 -Cherries,531 -Peaches and nectarines,534 -Plums and sloes,536 -Strawberries,544 -Gooseberries,549 -Currants,550 -Blueberries,552 -Cranberries,554 -Grapes,560 -Wine,564 -Watermelons,567 -"Melons, other (inc.cantaloupes)",568 -Figs,569 -"Mangoes, mangosteens, guavas",571 -Avocados,572 -Pineapples,574 -Dates,577 -Persimmons,587 -Cashewapple,591 -Kiwi fruit,592 -Papayas,600 -"Fruit, tropical fresh nes",603 -"Fruit, fresh nes",619 -"Coffee, green",656 -"Cocoa, beans",661 -Tea,667 -Mate,671 -Pepper (piper spp.),687 -"Chillies and peppers, dry",689 -Vanilla,692 -Cinnamon (cannella),693 -Cloves,698 -"Nutmeg, mace and cardamoms",702 -"Anise, badian, fennel, coriander",711 -Ginger,720 -Spices nes,723 -"Meat, cattle",867 -"Offals, edible, cattle",868 -"Fat, cattle",869 -"Milk, whole fresh cow",882 -Cream fresh,885 -"Butter, cow milk",886 -"Milk, skimmed cow",888 -"Milk, whole condensed",889 -"Whey, condensed",890 -Yoghurt,891 -"Milk, whole evaporated",894 -"Milk, whole dried",897 -"Milk, skimmed dried",898 -"Whey, dry",900 -"Cheese, whole cow milk",901 -"Meat, sheep",977 -"Offals, sheep,edible",978 -"Cheese, sheep milk",984 -"Meat, goat",1017 -"Offals, edible, goats",1018 -"Meat, pig",1035 -"Offals, pigs, edible",1036 -"Fat, pigs",1037 -Lard,1043 -"Meat, chicken",1058 -"Eggs, hen, in shell",1062 -"Meat, duck",1069 -"Meat, goose and guinea fowl",1073 -"Meat, turkey",1080 -"Eggs, other bird, in shell",1091 -"Meat, horse",1097 -"Fat, camels",1129 -"Meat, rabbit",1141 -"Meat, game",1163 -Meat nes,1166 -"Honey, natural",1182 -Tallow,1225 -"Margarine, short",1242 -"Flour, wheat",16 -"Bran, wheat",17 -Macaroni,18 -Bread,20 -Bulgur,21 -Pastry,22 -"Rice, husked",28 -"Rice, milled/husked",29 -"Rice, milled",31 -"Rice, broken",32 -"Oil, rice bran",36 -"Flour, rice",38 -"Beverages, fermented rice",39 -"Cereals, breakfast",41 -"Barley, pearled",46 -Malt,49 -"Germ, maize",57 -"Flour, maize",58 -"Bran, maize",59 -Oats rolled,76 -"Bran, millet",81 -"Bran, sorghum",85 -"Flour, mixed grain",104 -Infant food,109 -Wafers,110 -"Flour, cereals",111 -Cereal preparations nes,113 -Mixes and doughs,114 -"Food preparations, flour, malt extract",115 -"Flour, potatoes",117 -"Potatoes, frozen",118 -"Flour, cassava",126 -Cassava dried,128 -"Starch, cassava",129 -"Flour, roots and tubers nes",150 -Maple sugar and syrups,160 -Sugar non-centrifugal,163 -Sugar refined,164 -"Fructose and syrup, other",166 -Sugar nes,167 -Sugar confectionery,168 -Glucose and dextrose,172 -Lactose,173 -"Flour, pulses",212 -"Brazil nuts, shelled",229 -"Cashew nuts, shelled",230 -Almonds shelled,231 -"Walnuts, shelled",232 -"Hazelnuts, shelled",233 -"Nuts, prepared (exc. groundnuts)",235 -"Oil, soybean",237 -Soya sauce,239 -Soya paste,240 -"Groundnuts, shelled",243 -"Groundnuts, prepared",246 -Peanut butter,247 -"Coconuts, desiccated",250 -Copra,251 -Olives preserved,262 -Butter of karite nuts,264 -"Oil, castor beans",266 -"Oil, olive residues",274 -"Flour, mustard",295 -"Oil, vegetable origin nes",340 -"Juice, tomato",390 -"Tomatoes, paste",391 -"Tomatoes, peeled",392 -Sweet corn frozen,447 -Sweet corn prep or preserved,448 -"Mushrooms, canned",451 -"Vegetables, dehydrated",469 -Vegetables in vinegar,471 -"Vegetables, preserved nes",472 -"Vegetables, frozen",473 -"Vegetables, temporarily preserved",474 -"Vegetables, preserved, frozen",475 -"Vegetables, homogenized preparations",476 -"Juice, orange, single strength",491 -"Juice, orange, concentrated",492 -"Juice, lemon, single strength",498 -"Juice, lemon, concentrated",499 -"Juice, grapefruit",509 -"Juice, grapefruit, concentrated",510 -"Juice, citrus, single strength",513 -"Juice, citrus, concentrated",514 -Cider etc,517 -"Juice, apple, single strength",518 -"Juice, apple, concentrated",519 -"Apricots, dry",527 -Plums dried (prunes),537 -Raisins,561 -"Juice, grape",562 -Vermouths & similar,565 -Figs dried,570 -Pineapples canned,575 -"Juice, pineapple",576 -"Juice, pineapple, concentrated",580 -"Fruit, dried nes",620 -"Juice, fruit nes",622 -"Fruit, prepared nes",623 -"Fruit, cooked, homogenized preparations",626 -"Beverages, distilled alcoholic",634 -"Coffee, roasted",657 -"Coffee, substitutes containing coffee",658 -"Coffee, extracts",659 -"Cocoa, paste",662 -"Cocoa, butter",664 -"Cocoa, powder & cake",665 -Chocolate products nes,666 -"Tea, mate extracts",672 -"Feed and meal, gluten",846 -"Meat, cattle, boneless (beef & veal)",870 -"Meat, beef and veal sausages",874 -"Meat, beef, preparations",875 -"Yoghurt, concentrated or not",892 -"Buttermilk, curdled, acidified milk",893 -"Cheese, processed",907 -"Milk, products of natural constituents nes",909 -Ice cream and edible ice,910 -Grease incl. lanolin wool,994 -"Meat, pork",1038 -Bacon and ham,1039 -"Meat, pig sausages",1041 -"Meat, pig, preparations",1042 -"Offals, liver chicken",1059 -"Fat, liver prepared (foie gras)",1060 -"Meat, chicken, canned",1061 -"Eggs, liquid",1063 -"Eggs, dried",1064 -"Offals, liver geese",1074 -"Offals, liver duck",1075 -"Meat, dried nes",1164 -"Oils, fats of animal nes",1168 -Food prep nes,1232 -"Margarine, liquid",1241 -"Fat nes, prepared",1243 -"Oil, boiled etc",1274 -Fatty acids,1276 -Fatty substance residues,1277 -Cereals nes,108 -Yautia (cocoyam),135 -Taro (cocoyam),136 -Yams,137 -Sugar cane,156 -"Cow peas, dry",195 -Pigeon peas,197 -Lupins,210 -Pulses nes,211 -"Brazil nuts, with shell",216 -"Groundnuts, with shell",242 -Oil palm fruit,254 -Palm kernels,256 -Castor oil seed,265 -Tung nuts,275 -Jojoba seed,277 -Safflower seed,280 -Melonseed,299 -Tallowtree seed,305 -Kapok fruit,310 -Kapokseed in shell,311 -Hempseed,336 -Cassava leaves,378 -"Vegetables, leguminous nes",420 -String beans,423 -Okra,430 -Chicory roots,459 -Carobs,461 -"Fruit, citrus nes",512 -"Fruit, stone nes",541 -"Fruit, pome nes",542 -Raspberries,547 -Berries nes,558 -"Ghee, butteroil of cow milk",887 -"Milk, skimmed evaporated",895 -"Milk, skimmed condensed",896 -"Milk, dry buttermilk",899 -"Cheese, skimmed cow milk",904 -"Meat, buffalo",947 -"Offals, edible, buffaloes",948 -"Fat, buffaloes",949 -"Milk, whole fresh buffalo",951 -"Butter, buffalo milk",952 -"Ghee, buffalo milk",953 -"Cheese, buffalo milk",955 -"Fat, sheep",979 -"Milk, whole fresh sheep",982 -"Butter and ghee, sheep milk",983 -"Fat, goats",1019 -"Milk, whole fresh goat",1020 -"Cheese, goat milk",1021 -"Meat, bird nes",1089 -"Offals, horses",1098 -"Meat, ass",1108 -"Meat, mule",1111 -"Meat, camel",1127 -"Offals, edible, camels",1128 -"Milk, whole fresh camel",1130 -"Meat, other rodents",1151 -"Snails, not sea",1176 -"Germ, wheat",19 -"Starch, wheat",23 -"Gluten, wheat",24 -"Beverages, fermented wheat",26 -"Gluten, rice",33 -"Starch, rice",34 -"Bran, rice",35 -"Barley, pot",45 -"Bran, barley",47 -"Flour, barley and grits",48 -Malt extract,50 -"Gluten, maize",63 -"Starch, maize",64 -Beer of maize,66 -"Flour, rye",72 -"Bran, rye",73 -"Bran, oats",77 -"Flour, millet",80 -Beer of millet,82 -"Flour, sorghum",84 -Beer of sorghum,86 -"Flour, buckwheat",90 -"Bran, buckwheat",91 -"Flour, fonio",95 -"Bran, fonio",96 -"Flour, triticale",98 -"Bran, triticale",99 -"Bran, mixed grains",105 -"Bran, cereals nes",112 -"Starch, potatoes",119 -"Tapioca, potatoes",121 -"Tapioca, cassava",127 -Roots and tubers dried,151 -Fructose chemically pure,154 -Maltose chemically pure,155 -"Sugar, cane, raw, centrifugal",158 -Isoglucose,175 -"Bran, pulses",213 -Soya curd,241 -"Oil, tung nuts",276 -"Oil, jojoba",278 -"Oil, mustard",293 -"Oil, poppy",297 -Vegetable tallow,306 -Kapokseed shelled,312 -"Oil, kapok",313 -"Oil, hempseed",337 -"Flour, oilseeds",343 -"Mushrooms, dried",450 -"Juice, vegetables nes",466 -"Juice, tangerine",496 -"Juice, plum, single strength",538 -"Juice, plum, concentrated",539 -"Grapes, must",563 -"Juice, mango",583 -"Fruit, tropical dried nes",604 -"Flour, fruit",624 -"Fruits, nuts, peel, sugar preserved",625 -Alcohol non food,632 -"Fat, cattle butcher",871 -"Meat, beef, dried, salted, smoked",872 -"Meat, extracts",873 -"Meat, homogenized preparations",877 -Liver prep.,878 -"Whey, fresh",903 -"Whey, cheese",905 -"Milk, reconstituted",908 -Egg albumine,916 -Casein,917 -"Milk, skimmed buffalo",954 -"Milk, skimmed sheep",985 -"Butter, goat milk",1022 -"Milk, skimmed goat",1023 -"Fat, pig butcher",1040 -"Fat, poultry",1065 -"Fat, poultry, rendered",1066 -"Offals, liver turkeys",1081 -"Fat, other camelids",1160 -Offals nes,1167 -"Meat nes, preparations",1172 -Lard stearine oil,1221 -Degras,1222 -"Castor oil, hydrogenated (opal wax)",1273 -"Oil, hydrogenated",1275 -"Cake, soybeans",238 -"Cake, groundnuts",245 -"Cake, copra",253 -"Cake, palm kernel",259 -"Cake, sunflower",269 -"Cake, rapeseed",272 -"Cake, sesame seed",291 -"Cake, mustard",294 -"Cake, cottonseed",332 -"Cake, others",341 -"Rice, paddy (rice milled equivalent)",30 -Seed cotton,328 -Hops,677 -Peppermint,748 -"Pyrethrum, dried",754 -Cotton lint,767 -Flax fibre and tow,773 -Hemp tow waste,777 -Kapok fibre,778 -Jute,780 -"Bastfibres, other",782 -Ramie,788 -Sisal,789 -Agave fibres nes,800 -Manila fibre (abaca),809 -Coir,813 -Fibre crops nes,821 -"Tobacco, unmanufactured",826 -"Rubber, natural",836 -"Gums, natural",839 -"Hides, cattle, fresh",919 -"Hides, buffalo, fresh",957 -"Wool, greasy",987 -"Skins, sheep, fresh",995 -"Skins, goat, fresh",1025 -"Meat, other camelids",1158 -Beeswax,1183 -"Silk-worm cocoons, reelable",1185 -"Silk, raw",1186 -Freshwater Fish,2761 -Demersal Fish,2762 -Pelagic Fish,2763 -"Marine Fish, Other",2764 -Crustaceans,2765 -Cephalopods,2766 -"Molluscs, Other",2767 -"Meat, Aquatic Mammals",2768 -"Aquatic Animals, Others",2769 -Aquatic Plants,2775 -"Fish, Body Oil",2781 -"Fish, Liver Oil",2782 -"Cake, rice bran",360000 -"Cake, maize",600000 -"Cake, olive residues",2740000 -"Cake, jojoba",2780000 -"Cake, safflower",2810000 -"Cake, poppy",2970000 -"Cake, kapok",3130000 -"Fiber, cottonseed",3320000 -"Cake, linseed",3340000 -"Cake, hempseed",3370000 -"Cake, vegetable origin nes",3400000 -"AnMeatEq, cattle",8670000 -"AnMeatEq, buffalo",9470000 -"AnMeatEq, sheep",9770000 -"AnMeatEq, goat",10170000 -"AnMeatEq, pig",10350000 -"AnMeatEq, chicken",10580000 -"AnMeatEq, duck",10690000 -"AnMeatEq, goose and guinea fowl",10730000 -"AnMeatEq, turkey",10800000 -"AnMeatEq, horse",10970000 -"AnMeatEq, ass",11080000 -"AnMeatEq, mule",11110000 -"AnMeatEq, camel",11270000 -"AnMeatEq, rabbit",11410000 -"AnMeatEq, other rodents",11510000 -"AnMeatEq, other camelids",11580000 +item,item_code,TM +Wheat,15,TRUE +"Rice, paddy",27,TRUE +Barley,44,TRUE +Beer of barley,51,TRUE +Maize,56,TRUE +"Oil, maize",60,TRUE +Rye,71,TRUE +Oats,75,TRUE +Millet,79,TRUE +Sorghum,83,TRUE +Buckwheat,89,TRUE +Quinoa,92,TRUE +Fonio,94,TRUE +Triticale,97,TRUE +Canary seed,101,TRUE +"Grain, mixed",103,TRUE +Potatoes,116,TRUE +Sweet potatoes,122,TRUE +Cassava,125,TRUE +Roots and tubers nes,149,TRUE +Sugar beet,157,TRUE +Sugar crops nes,161,TRUE +Sugar Raw Centrifugal,162,TRUE +Molasses,165,TRUE +"Beans, dry",176,TRUE +"Broad beans, horse beans, dry",181,TRUE +"Peas, dry",187,TRUE +Chick peas,191,TRUE +Lentils,201,TRUE +Bambara beans,203,TRUE +Vetches,205,TRUE +"Cashew nuts, with shell",217,TRUE +Chestnut,220,TRUE +"Almonds, with shell",221,TRUE +"Walnuts, with shell",222,TRUE +Pistachios,223,TRUE +Kola nuts,224,TRUE +"Hazelnuts, with shell",225,TRUE +Areca nuts,226,TRUE +Nuts nes,234,TRUE +Soybeans,236,TRUE +"Oil, groundnut",244,TRUE +Coconuts,249,TRUE +"Oil, coconut (copra)",252,TRUE +"Oil, palm",257,TRUE +"Oil, palm kernel",258,TRUE +Olives,260,TRUE +"Oil, olive, virgin",261,TRUE +Karite nuts (sheanuts),263,TRUE +Sunflower seed,267,TRUE +"Oil, sunflower",268,TRUE +Rapeseed,270,TRUE +"Oil, rapeseed",271,TRUE +"Oil, safflower",281,TRUE +Sesame seed,289,TRUE +"Oil, sesame",290,TRUE +Mustard seed,292,TRUE +Poppy seed,296,TRUE +Cottonseed,329,TRUE +"Oil, cottonseed",331,TRUE +Linseed,333,TRUE +"Oil, linseed",334,TRUE +Oilseeds nes,339,TRUE +Cabbages and other brassicas,358,TRUE +Artichokes,366,TRUE +Asparagus,367,TRUE +Lettuce and chicory,372,TRUE +Spinach,373,TRUE +Tomatoes,388,TRUE +Cauliflowers and broccoli,393,TRUE +"Pumpkins, squash and gourds",394,TRUE +Cucumbers and gherkins,397,TRUE +Eggplants (aubergines),399,TRUE +"Chillies and peppers, green",401,TRUE +"Onions, shallots, green",402,TRUE +"Onions, dry",403,TRUE +Garlic,406,TRUE +"Leeks, other alliaceous vegetables",407,TRUE +"Beans, green",414,TRUE +"Peas, green",417,TRUE +Carrots and turnips,426,TRUE +"Maize, green",446,TRUE +Mushrooms and truffles,449,TRUE +"Vegetables, fresh nes",463,TRUE +Bananas,486,TRUE +Plantains and others,489,TRUE +Oranges,490,TRUE +"Tangerines, mandarins, clementines, satsumas",495,TRUE +Lemons and limes,497,TRUE +Grapefruit (inc. pomelos),507,TRUE +Apples,515,TRUE +Pears,521,TRUE +Quinces,523,TRUE +Apricots,526,TRUE +"Cherries, sour",530,TRUE +Cherries,531,TRUE +Peaches and nectarines,534,TRUE +Plums and sloes,536,TRUE +Strawberries,544,TRUE +Gooseberries,549,TRUE +Currants,550,TRUE +Blueberries,552,TRUE +Cranberries,554,TRUE +Grapes,560,TRUE +Wine,564,TRUE +Watermelons,567,TRUE +"Melons, other (inc.cantaloupes)",568,TRUE +Figs,569,TRUE +"Mangoes, mangosteens, guavas",571,TRUE +Avocados,572,TRUE +Pineapples,574,TRUE +Dates,577,TRUE +Persimmons,587,TRUE +Cashewapple,591,TRUE +Kiwi fruit,592,TRUE +Papayas,600,TRUE +"Fruit, tropical fresh nes",603,TRUE +"Fruit, fresh nes",619,TRUE +"Coffee, green",656,TRUE +"Cocoa, beans",661,TRUE +Tea,667,TRUE +Mate,671,TRUE +Pepper (piper spp.),687,TRUE +"Chillies and peppers, dry",689,TRUE +Vanilla,692,TRUE +Cinnamon (cannella),693,TRUE +Cloves,698,TRUE +"Nutmeg, mace and cardamoms",702,TRUE +"Anise, badian, fennel, coriander",711,TRUE +Ginger,720,TRUE +Spices nes,723,TRUE +"Meat, cattle",867,TRUE +"Offals, edible, cattle",868,TRUE +"Fat, cattle",869,TRUE +"Milk, whole fresh cow",882,TRUE +Cream fresh,885,TRUE +"Butter, cow milk",886,TRUE +"Milk, skimmed cow",888,TRUE +"Milk, whole condensed",889,TRUE +"Whey, condensed",890,TRUE +Yoghurt,891,TRUE +"Milk, whole evaporated",894,TRUE +"Milk, whole dried",897,TRUE +"Milk, skimmed dried",898,TRUE +"Whey, dry",900,TRUE +"Cheese, whole cow milk",901,TRUE +"Meat, sheep",977,TRUE +"Offals, sheep,edible",978,TRUE +"Cheese, sheep milk",984,TRUE +"Meat, goat",1017,TRUE +"Offals, edible, goats",1018,TRUE +"Meat, pig",1035,TRUE +"Offals, pigs, edible",1036,TRUE +"Fat, pigs",1037,TRUE +Lard,1043,TRUE +"Meat, chicken",1058,TRUE +"Eggs, hen, in shell",1062,TRUE +"Meat, duck",1069,TRUE +"Meat, goose and guinea fowl",1073,TRUE +"Meat, turkey",1080,TRUE +"Eggs, other bird, in shell",1091,TRUE +"Meat, horse",1097,TRUE +"Fat, camels",1129,TRUE +"Meat, rabbit",1141,TRUE +"Meat, game",1163,TRUE +Meat nes,1166,TRUE +"Honey, natural",1182,TRUE +Tallow,1225,TRUE +"Margarine, short",1242,TRUE +"Flour, wheat",16,TRUE +"Bran, wheat",17,TRUE +Macaroni,18,TRUE +Bread,20,TRUE +Bulgur,21,TRUE +Pastry,22,TRUE +"Rice, husked",28,TRUE +"Rice, milled/husked",29,TRUE +"Rice, milled",31,TRUE +"Rice, broken",32,TRUE +"Oil, rice bran",36,TRUE +"Flour, rice",38,TRUE +"Beverages, fermented rice",39,TRUE +"Cereals, breakfast",41,TRUE +"Barley, pearled",46,TRUE +Malt,49,TRUE +"Germ, maize",57,TRUE +"Flour, maize",58,TRUE +"Bran, maize",59,TRUE +Oats rolled,76,TRUE +"Bran, millet",81,TRUE +"Bran, sorghum",85,TRUE +"Flour, mixed grain",104,TRUE +Infant food,109,TRUE +Wafers,110,TRUE +"Flour, cereals",111,TRUE +Cereal preparations nes,113,TRUE +Mixes and doughs,114,TRUE +"Food preparations, flour, malt extract",115,TRUE +"Flour, potatoes",117,TRUE +"Potatoes, frozen",118,TRUE +"Flour, cassava",126,TRUE +Cassava dried,128,TRUE +"Starch, cassava",129,TRUE +"Flour, roots and tubers nes",150,TRUE +Maple sugar and syrups,160,TRUE +Sugar non-centrifugal,163,TRUE +Sugar refined,164,TRUE +"Fructose and syrup, other",166,TRUE +Sugar nes,167,TRUE +Sugar confectionery,168,TRUE +Glucose and dextrose,172,TRUE +Lactose,173,TRUE +"Flour, pulses",212,TRUE +"Brazil nuts, shelled",229,TRUE +"Cashew nuts, shelled",230,TRUE +Almonds shelled,231,TRUE +"Walnuts, shelled",232,TRUE +"Hazelnuts, shelled",233,TRUE +"Nuts, prepared (exc. groundnuts)",235,TRUE +"Oil, soybean",237,TRUE +Soya sauce,239,TRUE +Soya paste,240,TRUE +"Groundnuts, shelled",243,TRUE +"Groundnuts, prepared",246,TRUE +Peanut butter,247,TRUE +"Coconuts, desiccated",250,TRUE +Copra,251,TRUE +Olives preserved,262,TRUE +Butter of karite nuts,264,TRUE +"Oil, castor beans",266,TRUE +"Oil, olive residues",274,TRUE +"Flour, mustard",295,TRUE +"Oil, vegetable origin nes",340,TRUE +"Juice, tomato",390,TRUE +"Tomatoes, paste",391,TRUE +"Tomatoes, peeled",392,TRUE +Sweet corn frozen,447,TRUE +Sweet corn prep or preserved,448,TRUE +"Mushrooms, canned",451,TRUE +"Vegetables, dehydrated",469,TRUE +Vegetables in vinegar,471,TRUE +"Vegetables, preserved nes",472,TRUE +"Vegetables, frozen",473,TRUE +"Vegetables, temporarily preserved",474,TRUE +"Vegetables, preserved, frozen",475,TRUE +"Vegetables, homogenized preparations",476,TRUE +"Juice, orange, single strength",491,TRUE +"Juice, orange, concentrated",492,TRUE +"Juice, lemon, single strength",498,TRUE +"Juice, lemon, concentrated",499,TRUE +"Juice, grapefruit",509,TRUE +"Juice, grapefruit, concentrated",510,TRUE +"Juice, citrus, single strength",513,TRUE +"Juice, citrus, concentrated",514,TRUE +Cider etc,517,TRUE +"Juice, apple, single strength",518,TRUE +"Juice, apple, concentrated",519,TRUE +"Apricots, dry",527,TRUE +Plums dried (prunes),537,TRUE +Raisins,561,TRUE +"Juice, grape",562,TRUE +Vermouths & similar,565,TRUE +Figs dried,570,TRUE +Pineapples canned,575,TRUE +"Juice, pineapple",576,TRUE +"Juice, pineapple, concentrated",580,TRUE +"Fruit, dried nes",620,TRUE +"Juice, fruit nes",622,TRUE +"Fruit, prepared nes",623,TRUE +"Fruit, cooked, homogenized preparations",626,TRUE +"Beverages, distilled alcoholic",634,TRUE +"Coffee, roasted",657,TRUE +"Coffee, substitutes containing coffee",658,TRUE +"Coffee, extracts",659,TRUE +"Cocoa, paste",662,TRUE +"Cocoa, butter",664,TRUE +"Cocoa, powder & cake",665,TRUE +Chocolate products nes,666,TRUE +"Tea, mate extracts",672,TRUE +"Feed and meal, gluten",846,TRUE +"Meat, cattle, boneless (beef & veal)",870,TRUE +"Meat, beef and veal sausages",874,TRUE +"Meat, beef, preparations",875,TRUE +"Yoghurt, concentrated or not",892,TRUE +"Buttermilk, curdled, acidified milk",893,TRUE +"Cheese, processed",907,TRUE +"Milk, products of natural constituents nes",909,TRUE +Ice cream and edible ice,910,TRUE +Grease incl. lanolin wool,994,TRUE +"Meat, pork",1038,TRUE +Bacon and ham,1039,TRUE +"Meat, pig sausages",1041,TRUE +"Meat, pig, preparations",1042,TRUE +"Offals, liver chicken",1059,TRUE +"Fat, liver prepared (foie gras)",1060,TRUE +"Meat, chicken, canned",1061,TRUE +"Eggs, liquid",1063,TRUE +"Eggs, dried",1064,TRUE +"Offals, liver geese",1074,TRUE +"Offals, liver duck",1075,TRUE +"Meat, dried nes",1164,TRUE +"Oils, fats of animal nes",1168,TRUE +Food prep nes,1232,TRUE +"Margarine, liquid",1241,TRUE +"Fat nes, prepared",1243,TRUE +"Oil, boiled etc",1274,TRUE +Fatty acids,1276,TRUE +Fatty substance residues,1277,TRUE +Cereals nes,108,FALSE +Yautia (cocoyam),135,FALSE +Taro (cocoyam),136,FALSE +Yams,137,FALSE +Sugar cane,156,FALSE +"Cow peas, dry",195,FALSE +Pigeon peas,197,FALSE +Lupins,210,FALSE +Pulses nes,211,FALSE +"Brazil nuts, with shell",216,FALSE +"Groundnuts, with shell",242,FALSE +Oil palm fruit,254,FALSE +Palm kernels,256,FALSE +Castor oil seed,265,FALSE +Tung nuts,275,FALSE +Jojoba seed,277,FALSE +Safflower seed,280,FALSE +Melonseed,299,FALSE +Tallowtree seed,305,FALSE +Kapok fruit,310,FALSE +Kapokseed in shell,311,FALSE +Hempseed,336,FALSE +Cassava leaves,378,FALSE +"Vegetables, leguminous nes",420,FALSE +String beans,423,FALSE +Okra,430,FALSE +Chicory roots,459,FALSE +Carobs,461,FALSE +"Fruit, citrus nes",512,FALSE +"Fruit, stone nes",541,FALSE +"Fruit, pome nes",542,FALSE +Raspberries,547,FALSE +Berries nes,558,FALSE +"Ghee, butteroil of cow milk",887,FALSE +"Milk, skimmed evaporated",895,FALSE +"Milk, skimmed condensed",896,FALSE +"Milk, dry buttermilk",899,FALSE +"Cheese, skimmed cow milk",904,FALSE +"Meat, buffalo",947,FALSE +"Offals, edible, buffaloes",948,FALSE +"Fat, buffaloes",949,FALSE +"Milk, whole fresh buffalo",951,FALSE +"Butter, buffalo milk",952,FALSE +"Ghee, buffalo milk",953,FALSE +"Cheese, buffalo milk",955,FALSE +"Fat, sheep",979,FALSE +"Milk, whole fresh sheep",982,FALSE +"Butter and ghee, sheep milk",983,FALSE +"Fat, goats",1019,FALSE +"Milk, whole fresh goat",1020,FALSE +"Cheese, goat milk",1021,FALSE +"Meat, bird nes",1089,FALSE +"Offals, horses",1098,FALSE +"Meat, ass",1108,FALSE +"Meat, mule",1111,FALSE +"Meat, camel",1127,FALSE +"Offals, edible, camels",1128,FALSE +"Milk, whole fresh camel",1130,FALSE +"Meat, other rodents",1151,FALSE +"Snails, not sea",1176,FALSE +"Germ, wheat",19,FALSE +"Starch, wheat",23,FALSE +"Gluten, wheat",24,FALSE +"Beverages, fermented wheat",26,FALSE +"Gluten, rice",33,FALSE +"Starch, rice",34,FALSE +"Bran, rice",35,FALSE +"Barley, pot",45,FALSE +"Bran, barley",47,FALSE +"Flour, barley and grits",48,FALSE +Malt extract,50,FALSE +"Gluten, maize",63,FALSE +"Starch, maize",64,FALSE +Beer of maize,66,FALSE +"Flour, rye",72,FALSE +"Bran, rye",73,FALSE +"Bran, oats",77,FALSE +"Flour, millet",80,FALSE +Beer of millet,82,FALSE +"Flour, sorghum",84,FALSE +Beer of sorghum,86,FALSE +"Flour, buckwheat",90,FALSE +"Bran, buckwheat",91,FALSE +"Flour, fonio",95,FALSE +"Bran, fonio",96,FALSE +"Flour, triticale",98,FALSE +"Bran, triticale",99,FALSE +"Bran, mixed grains",105,FALSE +"Bran, cereals nes",112,FALSE +"Starch, potatoes",119,FALSE +"Tapioca, potatoes",121,FALSE +"Tapioca, cassava",127,FALSE +Roots and tubers dried,151,FALSE +Fructose chemically pure,154,FALSE +Maltose chemically pure,155,FALSE +"Sugar, cane, raw, centrifugal",158,FALSE +Isoglucose,175,FALSE +"Bran, pulses",213,FALSE +Soya curd,241,FALSE +"Oil, tung nuts",276,FALSE +"Oil, jojoba",278,FALSE +"Oil, mustard",293,FALSE +"Oil, poppy",297,FALSE +Vegetable tallow,306,FALSE +Kapokseed shelled,312,FALSE +"Oil, kapok",313,FALSE +"Oil, hempseed",337,FALSE +"Flour, oilseeds",343,FALSE +"Mushrooms, dried",450,FALSE +"Juice, vegetables nes",466,FALSE +"Juice, tangerine",496,FALSE +"Juice, plum, single strength",538,FALSE +"Juice, plum, concentrated",539,FALSE +"Grapes, must",563,FALSE +"Juice, mango",583,FALSE +"Fruit, tropical dried nes",604,FALSE +"Flour, fruit",624,FALSE +"Fruits, nuts, peel, sugar preserved",625,FALSE +Alcohol non food,632,FALSE +"Fat, cattle butcher",871,FALSE +"Meat, beef, dried, salted, smoked",872,FALSE +"Meat, extracts",873,FALSE +"Meat, homogenized preparations",877,FALSE +Liver prep.,878,FALSE +"Whey, fresh",903,FALSE +"Whey, cheese",905,FALSE +"Milk, reconstituted",908,FALSE +Egg albumine,916,FALSE +Casein,917,FALSE +"Milk, skimmed buffalo",954,FALSE +"Milk, skimmed sheep",985,FALSE +"Butter, goat milk",1022,FALSE +"Milk, skimmed goat",1023,FALSE +"Fat, pig butcher",1040,FALSE +"Fat, poultry",1065,FALSE +"Fat, poultry, rendered",1066,FALSE +"Offals, liver turkeys",1081,FALSE +"Fat, other camelids",1160,FALSE +Offals nes,1167,FALSE +"Meat nes, preparations",1172,FALSE +Lard stearine oil,1221,FALSE +Degras,1222,FALSE +"Castor oil, hydrogenated (opal wax)",1273,FALSE +"Oil, hydrogenated",1275,FALSE +"Cake, soybeans",238,TRUE +"Cake, groundnuts",245,TRUE +"Cake, copra",253,TRUE +"Cake, palm kernel",259,TRUE +"Cake, sunflower",269,TRUE +"Cake, rapeseed",272,TRUE +"Cake, sesame seed",291,TRUE +"Cake, mustard",294,TRUE +"Cake, cottonseed",332,TRUE +"Cake, others",341,FALSE +"Rice, paddy (rice milled equivalent)",30,FALSE +Seed cotton,328,FALSE +Hops,677,TRUE +Peppermint,748,TRUE +"Pyrethrum, dried",754,TRUE +Cotton lint,767,TRUE +Flax fibre and tow,773,TRUE +Hemp tow waste,777,FALSE +Kapok fibre,778,TRUE +Jute,780,TRUE +"Bastfibres, other",782,FALSE +Ramie,788,FALSE +Sisal,789,FALSE +Agave fibres nes,800,FALSE +Manila fibre (abaca),809,TRUE +Coir,813,TRUE +Fibre crops nes,821,TRUE +"Tobacco, unmanufactured",826,TRUE +"Rubber, natural",836,TRUE +"Gums, natural",839,FALSE +"Hides, cattle, fresh",919,TRUE +"Hides, buffalo, fresh",957,FALSE +"Wool, greasy",987,TRUE +"Skins, sheep, fresh",995,FALSE +"Skins, goat, fresh",1025,FALSE +"Meat, other camelids",1158,FALSE +Beeswax,1183,TRUE +"Silk-worm cocoons, reelable",1185,TRUE +"Silk, raw",1186,TRUE +Freshwater Fish,2761,FALSE +Demersal Fish,2762,FALSE +Pelagic Fish,2763,FALSE +"Marine Fish, Other",2764,FALSE +Crustaceans,2765,FALSE +Cephalopods,2766,FALSE +"Molluscs, Other",2767,FALSE +"Meat, Aquatic Mammals",2768,FALSE +"Aquatic Animals, Others",2769,FALSE +Aquatic Plants,2775,FALSE +"Fish, Body Oil",2781,FALSE +"Fish, Liver Oil",2782,FALSE +"Cake, rice bran",360000,FALSE +"Cake, maize",600000,FALSE +"Cake, olive residues",2740000,FALSE +"Cake, jojoba",2780000,FALSE +"Cake, safflower",2810000,FALSE +"Cake, poppy",2970000,FALSE +"Cake, kapok",3130000,FALSE +"Fiber, cottonseed",3320000,FALSE +"Cake, linseed",3340000,FALSE +"Cake, hempseed",3370000,FALSE +"Cake, vegetable origin nes",3400000,FALSE +"AnMeatEq, cattle",8670000,FALSE +"AnMeatEq, buffalo",9470000,FALSE +"AnMeatEq, sheep",9770000,FALSE +"AnMeatEq, goat",10170000,FALSE +"AnMeatEq, pig",10350000,FALSE +"AnMeatEq, chicken",10580000,FALSE +"AnMeatEq, duck",10690000,FALSE +"AnMeatEq, goose and guinea fowl",10730000,FALSE +"AnMeatEq, turkey",10800000,FALSE +"AnMeatEq, horse",10970000,FALSE +"AnMeatEq, ass",11080000,FALSE +"AnMeatEq, mule",11110000,FALSE +"AnMeatEq, camel",11270000,FALSE +"AnMeatEq, rabbit",11410000,FALSE +"AnMeatEq, other rodents",11510000,FALSE +"AnMeatEq, other camelids",11580000,FALSE