standardName(x, standard, ignore.case = TRUE, returnAlternatives = FALSE, quiet = FALSE)
standardCountry(x, ignore.case = TRUE, returnAlternatives = FALSE, quiet = FALSE)
standardState(x, ignore.case = TRUE, returnAlternatives = FALSE, quiet = FALSE)x, this function requires another argument:
standard - a named vector in which each name is a particular
spelling of the region name in question and the corresponding value
is the standardized version of that region name
x to the standard ISO_a3 country code format. If
returnAlternatives is set to TRUE, this function will also
return the the named vector used to standardize the country names
x to the standard two-letter abbreviations. If
returnAlternatives is set to TRUE, this function will also
return the the named vector used to standardize the state namesIn all three cases, any names not found in standard
will be left unaltered. Unless supressed, a warning message will
indicate the number of such cases, if there are any.