get_word_counts | R Documentation |
Generate word counts
get_word_counts( df, column, sentiments = NULL, exclude_words = "", min_count = 1 )
df |
A data.frame |
column |
A column name as a string |
sentiments |
An optional data.frame of sentiments from tidytext::get_sentiments("bing") |
exclude_words |
An optional vector of words to exclude from the counts. Stop words (e.g. and, but, or) are handled automatically. |
min_count |
The minimum word frequency to include in the final counts. Useful for pruning wordclouds. |
A data.frame of word counts, optionally by sentiment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.