has_word: Function to tally cases with and without a particular words

View source: R/text_analysis.R

has_wordR Documentation

Function to tally cases with and without a particular words

Description

Function to tally cases with and without a particular words

Usage

has_word(
  the_dataframe,
  contains_words,
  text_col = "ocr",
  results_col = "EV_article"
)

Arguments

the_dataframe

the dataframe with a text column and a results column

contains_words

the word (or other regex) to search for

text_col

the column containing the text

results_col

the column containing the classification


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.