top_words_Retriever: Get the top words based on a key search word

Description Usage Arguments Value Examples

View source: R/top_words_Retriever.R

Description

This function helps to search for the top n words but only based texts or rows containing a key word. It is particularly useful when you want to search the top n words revolving around a certain keyword

Usage

1
top_words_Retriever(word_vec, word_ret, remove_these, size)

Arguments

word_vec

This is the corpus you want to extract the sentiments from

word_ret

is the key word you want searched

remove_these

is a vector of characters you want cleaned out of the tex

size

is the N number of rows to be retrieved as an integer value

Value

a data frame object.

Examples

1
2
3
{
top_words_Retriever(brexit$content, word_ret = "brexit", remove_these = c("news","uk"), size = 10)
}

texter documentation built on Sept. 20, 2021, 5:08 p.m.