Skip to contents

Is it an international (+ prefixed) phone number?

Usage

is_intl_phone(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for a +-prefixed number with 8-15 digits and common separators/parentheses.

See also

Other phone detectors: is_msisdn(), is_phone()

Examples

is_intl_phone(c("+1-4250013981", "+61 3 6216 0864", "4250013981", NA))
#> [1]  TRUE  TRUE FALSE    NA