View source: R/tidy_frequencies.R
tidy_frequencies | R Documentation |
Returns tibble with frequencies of cat (lemma or word for instance) in data
tidy_frequencies(mydf, cat, top_freq = NA, min_freq = NA)
mydf |
a tibble |
cat |
words or lemmas, for instance |
top_freq |
how many items by category (filter based on frequency) should be kept. If not provided (the default) everything is kept. |
min_freq |
which is the minimum specificity for an item to be kept. If not provided (the default) everything is kept. |
a tibble of cat frequencies
mydf <- tibble::tibble(txt=janeaustenr::prideprejudice) %>%
tidytext::unnest_tokens(word,txt)
tidy_frequencies(mydf, word, min_freq=200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.