Skip to contents

Checks if requested countries are formatted correctly for PolarCAP and attempts to convert them to ISO 3166-1 alpha-3 country codes if not.

Usage

to.ISO3(countries)

Arguments

countries

a character vector of countries to be checked (case-insensitive).

Value

a character vector of length equal to that of countries.

Examples

to.ISO3(c("ALB", "aus", "united states"))
#> [1] "ALB" "AUS" "USA"