# Get phone types for a phone vector
x <- phone(c(0, 0123, "0412 345 678", "61412987654", "03 9123 4567", "+12015550123"), "AU")
get_type(x)
# All supported phone types
get_supported_types()
# Get supported types for specified regions
get_types_for_region("AU")
get_types_for_region(c("GB", "US"))
get_types_for_region(get_supported_regions())[1:5]
Run the code above in your browser using DataLab