text_drop_keyword_responses: Remove responses with keywords

Description Usage Arguments Value Examples

View source: R/text_drop_keyword_responses.R

Description

This function may be useful if you want to remove responses which mention a particular word or phrase. Note: this removes the whole response, not only the word itself - if you want to remove one word only, use the text_remove_words() function.

Usage

1
text_drop_keyword_responses(data, text_col, keywords = c("insert_keywords"))

Arguments

data

data.frame containing all responses

text_col

column containing free text

keywords

responses containing any of these words will be removed. Not case-sensitive.

Value

data.frame with responses that match keywords removed

Examples

1

DataS-DHSC/consultations documentation built on Jan. 28, 2022, 1:56 a.m.