# NOT RUN {
parse_country(c("United States", "USA", "U.S.", "us", "United States of America"))
# }
# NOT RUN {
# Unicode support for parsing accented or non-Latin scripts
parse_country(c("\u65e5\u672c", "Japon", "\u0698\u0627\u067e\u0646"), how = "google")
#> [1] "JP" "JP" "JP" "JP"
# Parse distinct place names via geocoding APIs
parse_country(c("1600 Pennsylvania Ave, DC", "Eiffel Tower"), how = "google")
#> [1] "US" "FR"
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab