top_words_Retriever {texter}R Documentation

Get the top words based on a key search word

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

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


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


[Package texter version 0.1.9 Index]