vincentarelbundock / countrycode

R package: Convert country names and country codes. Assigns region descriptors.
https://vincentarelbundock.github.io/countrycode
GNU General Public License v3.0
342 stars 83 forks source link

non-countries #265

Closed vincentarelbundock closed 2 years ago

vincentarelbundock commented 3 years ago

Is it time to reconsider the inclusion of non-countries?

I know this is potentially a bottom-less hole, but there have been so many requests over the years.

One potential demarcation criterion might be that:

  1. Units must come from an original source, scraped from our dictionary codes
  2. Regexes for non-countries are extra strict, as in our discussion where we mentioned explicitly naming variations with pipes instead of wildcards.
vincentarelbundock commented 2 years ago

I think the best way to approach this is with the use of custom_dict.

If someone can supply a reasonably complete set of codes/regexes for non-countries, I will be happy to consider hosting it on the repository and on the countrycode website, as well as include some usage examples in the README.