countryToCode: Convert country names to country codes

View source: R/MazamaSpatialUtils-package.R

countryToCodeR Documentation

Convert country names to country codes

Description

Converts a vector of English country names to the corresponding ISO 3166-1 alpha-2 codes.

Usage

countryToCode(countryNames)

Arguments

countryNames

Vector of English language country names.

Value

A vector of ISO 3166-1 alpha-2 codes or NA.

Note

This function is deprecated as of MazamaSpatialUtils 0.8.7. Please use countryNameToCode instead.


MazamaSpatialUtils documentation built on Nov. 3, 2024, 9:07 a.m.