R/xfaostat_helper_funcs.R
FAOSTAT_AREA_RM_NONEXIST.Rd
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)
)
A input data frame
If TRUE, only keep one merged Sudan region
Additional area_codes to remove, e.g., small regions with low data quality.
A data frame with nonexistent area and area_code removed