This function was developed when exploring FAO production data. Additional small regions/areas are also remove due to low data quality.

FAOSTAT_AREA_RM_NONEXIST(
  .DF,
  SUDAN2012_MERGE = F,
  RM_AREA_CODE = c(69, 87, 127, 135, 145, 182, 299)
)

Arguments

.DF

A input data frame

SUDAN2012_MERGE

If TRUE, only keep one merged Sudan region

RM_AREA_CODE

Additional area_codes to remove, e.g., small regions with low data quality.

Value

A data frame with nonexistent area and area_code removed