is_phone_number: Test if a string is a phone number.

Description Usage Arguments Value Examples

Description

Strictly works for only US phone numbers.

Usage

1

Arguments

.x

A string or numeric vector.

Value

A logical value indicating if that string is a phone number.

Examples

1
2
3
4
5
# Examples
is_phone_number("hello") # FALSE
is_phone_number(65884) # FALSE
is_phone_number("111-333-5555") # TRUE
is_phone_number(1113335555) # TRUE


Search within the detector package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.