Skip to contents

Create fake phone numbers

Usage

ch_phone_number(n = 1, locale = NULL)

Arguments

n

(integer) number of things to get, any non-negative integer

locale

(character) the locale to use. See PhoneNumberProvider$new()$allowed_locales() for locales supported (default: en_US)

Examples

ch_phone_number()
#> [1] "(245)939-5374x0961"
ch_phone_number(10)
#>  [1] "397-399-4250x22938" "898.639.8024x4728"  "(225)792-3223"     
#>  [4] "+28(4)7926376715"   "05404673600"        "334.435.4902"      
#>  [7] "+68(5)9069703476"   "+40(7)4086224194"   "726-129-4270x28623"
#> [10] "657.178.4982"      
# or even ch_phone_number(500)

# locales
ch_phone_number(locale = "fr_FR")
#> [1] "0185407814"
ch_phone_number(locale = "uk_UA")
#> [1] "056 042 13 49"
ch_phone_number(locale = "en_CA")
#> [1] "900 345 3643"
ch_phone_number(locale = "lv_LV")
#> [1] "+(371) 63106673"