Learn R Programming

detector (version 0.1.0)

has_phone_numbers: Test if a character vector has any phone numbers.

Description

Test if a character vector has any phone numbers.

Usage

has_phone_numbers(.x)

Arguments

.x
A character vector.

Value

A logical value indicating if that string has any phone numbers.

Examples

Run this code
# Examples
has_phone_numbers("hello") # FALSE
has_phone_numbers(65884) # FALSE
has_phone_numbers("111-333-5555") # TRUE
has_phone_numbers(1113335555) # TRUE

Run the code above in your browser using DataLab