vincentarelbundock / countrycode

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

fallback #264

Closed vincentarelbundock closed 3 years ago

vincentarelbundock commented 3 years ago

Right now, we can supply a new vector to no_match as a fallback. But it might be nice to do something like:

countrycode(x, "country.name", c("iso3c", "cowc", "iso2c"))

which would try to generate a ISO but return a COW if it doesn't find it. Similar might work for origin (thought I haven't thought about it carefully).