Return type of phone number
Arguments
- phone
character vector of phone numbers
- country
CLDR country code. If empty, tries to parse it from
phone
Examples
phone_type(fake_phone)
#> [1] "fixed_line_or_mobile" "fixed_line" "fixed_line"
#> [4] "fixed_line" "mobile" "fixed_line"
#> [7] "mobile" "mobile" "fixed_line"
#> [10] "fixed_line" "fixed_line" "unknown"
#> [13] "unknown" "mobile" "fixed_line"
#> [16] "fixed_line" "fixed_line" "mobile"
#> [19] "mobile" "fixed_line_or_mobile" "fixed_line"
#> [22] "fixed_line" "fixed_line" "uan"
#> [25] "unknown" "mobile" "mobile"
#> [28] "fixed_line" "mobile" "mobile"
#> [31] "fixed_line" "unknown" "mobile"
#> [34] "unknown" "unknown" NA
#> [37] NA "toll_free" "mobile"
#> [40] "toll_free" "unknown" "fixed_line_or_mobile"
#> [43] "fixed_line_or_mobile" "mobile" "toll_free"
#> [46] "unknown" "mobile" "fixed_line"
#> [49] "fixed_line" "fixed_line" "unknown"
#> [52] "fixed_line" "fixed_line" "fixed_line"
#> [55] "fixed_line" "fixed_line" "fixed_line"
#> [58] "fixed_line" "fixed_line" "fixed_line"
#> [61] "fixed_line" "fixed_line" "unknown"
#> [64] "fixed_line" "fixed_line" "fixed_line"
#> [67] "fixed_line" "fixed_line" "fixed_line"
#> [70] "fixed_line" "fixed_line" "fixed_line"
#> [73] "fixed_line" "fixed_line" "fixed_line"
#> [76] "fixed_line" "fixed_line" "fixed_line"
#> [79] "fixed_line" "fixed_line_or_mobile" "fixed_line"
#> [82] "fixed_line" "fixed_line" "fixed_line"
#> [85] "fixed_line" "fixed_line" "fixed_line"
#> [88] "fixed_line" "fixed_line" "fixed_line"
#> [91] "fixed_line" "fixed_line" "fixed_line"
#> [94] "fixed_line" "fixed_line" "fixed_line"
#> [97] "fixed_line" "fixed_line" "fixed_line"
#> [100] "fixed_line"