powered by
This function is used to get the top N words from a corpus. It will retrieve the most occurring words based on frequency
top_words(word_vec, remove_these, size)
This is the corpus you want to extract the sentiments from
This is a vector of characters you want cleaned out of the text
This is the Top N number of rows to be retrieved as an integer value
a data frame object.
# NOT RUN { { top_words(brexit$content, remove_these = c("news","uk"), size = 10) } # }
Run the code above in your browser using DataLab