# Get regions for a phone vector
x <- phone(c(0, 0123, "0412 345 678", "61412987654", "03 9123 4567", "+12015550123"), "AU")
get_region(x)
# All supported region codes
get_supported_regions()
# Primary region for a calling code
get_region_for_calling_code(c(1, 61, 84))
# All regions for a calling code
get_regions_for_calling_code(c(1, 61, 84))
Run the code above in your browser using DataLab