View source: R/sn_standard_country.R
sn_standard_country | R Documentation |
Turn a country name its a standard format, either country name, or two letter country code
sn_standard_country(country, type = "name")
country |
A character string. Either full name of a country, or a two-letter country code. |
type |
Defines output format. If "name", outputs full name. If "code", outputs two letter country code. |
sn_standard_country("DE", type = "name")
sn_standard_country("France", type = "code")
# if requested input the same as output, it is returned consitently
sn_standard_country("FR", type = "code")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.