sn_standard_country: Turn a country name its a standard format, either country...

View source: R/sn_standard_country.R

sn_standard_countryR Documentation

Turn a country name its a standard format, either country name, or two letter country code

Description

Turn a country name its a standard format, either country name, or two letter country code

Usage

sn_standard_country(country, type = "name")

Arguments

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.

Examples


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")

giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.