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] "585-897-5387x616"
ch_phone_number(10)
#>  [1] "1-304-559-3244x8164" "690-481-8366"        "864.929.2156x26007" 
#>  [4] "000.601.1556x45962"  "370.250.4600x53677"  "+87(6)5288474446"   
#>  [7] "09670129566"         "1-316-303-5600x6901" "(102)492-7769x367"  
#> [10] "910.563.1457"       
# or even ch_phone_number(500)

# locales
ch_phone_number(locale = "fr_FR")
#> [1] "0608925268"
ch_phone_number(locale = "uk_UA")
#> [1] "+38 (677) 191-12-98"
ch_phone_number(locale = "en_CA")
#> [1] "1 (635) 757-2072"
ch_phone_number(locale = "lv_LV")
#> [1] "+(371) 65949933"