Skip to contents

iso3c_kr() Converts Korean country names into iso3c country codes. Korean governmental data often uses country names only in Korean, and without universal country codes. Sometimes, Korean-language country names are not consistent across different datasets. This function is designed to assign universal iso3c country codes to Korean-language country names that will make it easier to join different kinds of data.

There can be problems with some countries when used in a country-year panel data format, especially for countries that have gone through political transitions such as Germany, Serbia, Vietnam, Yemen and so on.

Arguments

df

A character vector of source dataframe name.

country_kr

A character vector of the column name that has Korean-language country names.

Value

iso3c_kr() Converts Korean country names into iso3c country codes.

Author

Kadir Jun Ayhan

Examples

if (FALSE) {
df <- iso3c_kr(df, country_kr)
head(df)
}