Learn R Programming

detector (version 0.1.0)

has_email_addresses: Test if a character vector has any e-mail addresses.

Description

Test if a character vector has any e-mail addresses.

Usage

has_email_addresses(.x)

Arguments

.x
A character vector.

Value

A logical value indicating if that string has any e-mail addresses.

Examples

Run this code
# Examples
has_email_addresses("hello") # FALSE
has_email_addresses("hello@world.edu") # TRUE

Run the code above in your browser using DataLab