Skip to contents

phone_regions() returns the table of territories in the bundled libphonenumber metadata (v9.0.43).

Usage

phone_regions()

Value

A data frame with one row per territory (245 geographical regions and 9 non-geographic "001" calling codes) and the columns:

  • region: two-letter CLDR region code, or "001" for non-geographic entities.

  • country_code: integer country calling code.

  • main_country: logical; TRUE for the primary region of a shared country calling code.

  • national_prefix: national trunk prefix, or NA_character_.

  • example_fixed_line: upstream example fixed-line number, or NA_character_.

  • example_mobile: upstream example mobile number, or NA_character_.

Examples

head(phone_regions())
#>   region country_code main_country national_prefix example_fixed_line
#> 1     AC          247         TRUE            <NA>              62889
#> 2     AD          376         TRUE            <NA>             712345
#> 3     AE          971         TRUE               0           22345678
#> 4     AF           93         TRUE               0          234567890
#> 5     AG            1        FALSE               1         2684601234
#> 6     AI            1        FALSE               1         2644612345
#>   example_mobile
#> 1          40123
#> 2         312345
#> 3      501234567
#> 4      701234567
#> 5     2684641234
#> 6     2642351234