fixCountryCol: Standardize a vector of countries

Description Usage Arguments

View source: R/advanced_R_studies.R

Description

This function makes the following corrections:
'United Kingdom' <- 'UK'
"United States" <- "USA"
"The United States" <- "USA"
"Untied States" <- "USA"
"United Staets" <- "USA"
"The United States of America" <- "USA"
"United Arab Emirates" <- "UAE"
"Iran, Islamic Republic of" <- "Iran"
"Moldova, Republic of" <- "Moldova"
"The Former Yugoslav Republic of Macedonia" <- "FYR Macedonia"
"Union of Myanmar (republic of the)" <- "Myanmar"
"Afghanistan, Islamic Republic of" <- "Afghanistan"
"Syrian Arab Republic" <- "Syria"
"Korea, Republic of" <- "Korea (Rep. of)"
"Cote D'ivoire" <- "Cote d'Ivoire"
"Macao, China" <- "Macau, China"
"The Former Yugoslav Republic of Macedonia" <- "FYR Macedonia"
"Afghanistan, Islamic Republic of" <- "Afghanistan"
"United Arab Emirates" <- "UAE"
"Syrian Arab Republic" <- "Syria"
"Korea, Republic of" <- "Korea (Rep. of)"
"Democratic Republic of the Congo" <- "Congo (Dem. Rep. of)"
"Congo, Republic of the" <- "Congo (Rep. of)"
"Ivory Coast" <- "Cote d'Ivoire"
"Cote D'ivoire" <- "Cote d'Ivoire"
"Macao, China" <- "Macau, China"
"Iran, Islamic Republic of" <- "Iran"
"Us Virgin Islands" <- "US Virgin Islands"
"Moldova, Republic of" <- "Moldova"
"The Former Yugoslav Republic of Macedonia" <- "FYR Macedonia"
"Afghanistan, Islamic Republic of" <- "Afghanistan"
"United Arab Emirates" <- "UAE"
"Syrian Arab Republic" <- "Syria"
"Korea, Republic of" <- "Korea (Rep. of)"
"Democratic Republic of the Congo" <- "Congo (Dem. Rep. of)"
"Congo, Republic of the" <- "Congo (Rep. of)"
"Macao, China" <- "Macau, China"

Usage

1

Arguments

inVec

A vector of countries that are unstandardized


C-Research/c4aRs documentation built on Sept. 2, 2021, 1:10 p.m.