has_dear: Dear

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 the word "dear" appears within it. 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_dear <- emails %>%
   mutate(has_dear = has_dear(text = subjectline))

## End(Not run)

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