search_key_words: Select documents containing a certain set of key words

Description Usage Arguments Value Author(s) Examples

Description

Input the document-term data_frame and specify the key words

Usage

1
search_key_words(df, key_words)

Arguments

df

The document-term data_frame output from create_DTM

key_words

A list of key words

Value

A subset of the input document-term data frame with only the documents containing the key words

Author(s)

Jiacheng He

Examples

1
2
search_key_words(text, list("Trump"))
search_key_words(text, list("lgbt", "gunman", "killer"))

JiachengHe/TextAnalysis documentation built on May 28, 2019, 7:51 a.m.