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] "(897)538-7616x23045"
ch_phone_number(10)
#>  [1] "593-244-8164x469"    "481-836-6786x4929"   "1-156-260-0770x0060"
#>  [4] "(115)564-5962x737"   "025-046-0053x677"    "+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"