has_ampersand: Ampersand

Description Usage Arguments Examples

View source: R/spam_functions.R

Description

This function takes in any string and returns a boolean indicating whether or not there is an ampersand. This function is intended for use on any of the email MEA datasets.

Usage

1

Arguments

text

string/ email subject line

Examples

1
2
3
4
5
## Not run: 
emails_dollar <- emails %>%
   mutate(has_ampersand = has_ampersand(text = subjectline))

## End(Not run)

leahannejohnson/textclassificationexamples documentation built on Feb. 7, 2022, 11:04 p.m.