resolve_country | R Documentation |
Country identity can be provided as a number or as country name. If the provided number is a valid ISO 3166-1 country code it is returned directly.
resolve_country(country, full.name = FALSE)
country |
Character country name or numeric country code. |
full.name |
Logical should the full name of the country be returned? (default: FALSE) |
Package countrycode
is used to resolve the value of argument
country
which can be either a country name (country.name
) or a
ISO 3166-1 country code (iso3n
).
Numeric count of the species whose range intersects with the country.
Joona Lehtomaki <joona.lehtomaki@gmail.com>
countrycode
# Using country name code <- resolve_country("Finland") # Using country code (156 is China) code <- resolve_country(156) # Getting the full name country.name <- resolve_country(156, full.name=TRUE) # Country code can be provided as a character string as well code <- resolve_country("156")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.