Description Usage Arguments Value Examples
View source: R/top_words_Retriever.R
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
1 | top_words_Retriever(word_vec, word_ret, remove_these, size)
|
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 |
a data frame object.
1 2 3 | {
top_words_Retriever(brexit$content, word_ret = "brexit", remove_these = c("news","uk"), size = 10)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.