| wordcounts_doc_lengths | R Documentation |
Given a wordcounts long-format dataframe returned by
read_wordcounts, calculate document lengths. This is just a
convenience function for a straightforward summarize.
It's often useful to filter a set of documents by (unstopped) length before
modeling, and it's a good idea to check the distribution of document lengths
before modeling, as this can substantially influence modeling outcomes.
wordcounts_doc_lengths(counts)
counts |
The dataframe from |
A dataframe with id and length columns
read_wordcounts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.