sandbox/oldVersion/old_functions/getAllCountries.R

##' Get All Countries
##'
##' This function pulls all the countries in M49 code.
##'
##' @export
##'

getAllCountries = function(){
  GetCodeList(domain = "agriculture",
              dataset = "aproduction",
              dimension = "geographicAreaM49")[type == "country", code]
}
SWS-Methodology/faoswsStock documentation built on May 23, 2021, 7:35 a.m.