Skip to contents

Is it an MSISDN (mobile subscriber number)?

Usage

is_msisdn(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for a bare 10-15 digit MSISDN.

Details

Loose by construction: any 10-15 digit run matches. Best used with a variable-name hint.

See also

Other phone detectors: is_intl_phone(), is_phone()

Examples

is_msisdn(c("919961345678", "13109976224", "12345", NA))
#> [1]  TRUE  TRUE FALSE    NA