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] "520.752.7524"
ch_phone_number(10)
#>  [1] "1-685-429-8176x21816" "278.443.3168x1726"    "(341)069-4962"       
#>  [4] "(650)596-4532x20768"  "(621)240-6858"        "(583)114-4957x0504"  
#>  [7] "923-872-6069"         "008-030-9365x8402"    "458.415.9976"        
#> [10] "137-774-9438x6779"   
# or even ch_phone_number(500)

# locales
ch_phone_number(locale = "fr_FR")
#> [1] "+33 (0)1 44 49 70 70"
ch_phone_number(locale = "uk_UA")
#> [1] "054 328-43-84"
ch_phone_number(locale = "en_CA")
#> [1] "435.398.9360"
ch_phone_number(locale = "lv_LV")
#> [1] "+37190220274"