phone_type()returns the number type ("fixed_line","mobile","fixed_line_or_mobile","toll_free","premium_rate","shared_cost","voip","personal_number","pager","uan","voicemail", or"unknown"when parsed but not valid under the numbering plan).phone_region()returns the two-letter CLDR region code (or"001"for non-geographic calling codes such as+800).
Arguments
- x
A character vector of phone numbers (or an existing
dialtone_phonedata frame returned byphone_parse()).- region
A single two-letter CLDR region code (such as
"US","GB"or"IN") giving the default country for numbers written without a leading+, orNULLwhen numbers are in international format.
Value
A character vector the same length as x, with NA_character_
where x is NA or cannot be parsed.