
Convert ISO3 to ISO2 or ISO2 to ISO3 Country Codes
Source:R/convert_iso_codes.R
convert_iso_codes.RdThis function converts a vector or scalar of ISO3 country codes to ISO2 country codes, or vice versa, based on the input. The function uses the countrycode package and auto-detects the input format.
Value
A character vector of converted ISO2 or ISO3 country codes corresponding to the provided input.