Skip to contents

Look up 2 character ISO country codes

Usage

rgb_country_codes(country_name, fuzzy = FALSE, ...)

Arguments

country_name

Name of country to look up

fuzzy

If TRUE, uses agrep to do fuzzy search on names.

...

Further arguments passed on to agrep or grep

Examples

rgb_country_codes(country_name="United")
#>     code                                 name                      gbif_name
#> 2     AE                 United Arab Emirates           UNITED_ARAB_EMIRATES
#> 77    GB                       United Kingdom                 UNITED_KINGDOM
#> 228   TZ         Tanzania, United Republic of                       TANZANIA
#> 231   UM United States Minor Outlying Islands UNITED_STATES_OUTLYING_ISLANDS
#> 232   US                        United States                  UNITED_STATES