I find the use of topfeatures and docfreq needlessly confusing. Why not have freq_words, (or freq_tokens) and freq_docs? Both should have an “n” argument to show just the top few. Here’s an example that demonstrates how confusing the two sets of output is. topfeatures sorts by frequency by default, while docfreq sorts alphabetically. Since Appearance came out #1 in both, I assumed they were sorted the same way and that Humor had gone from #2 to #7. (This is the WordStat seeking dictionary applied to the seeking.csv).
> topfeatures(seeking_dfm_topics) # Counting terms.
APPEARANCE HUMOR EDUCATION NIGHTLIFE ARTS COMMUNICATION OUTDOOR
82 43 35 34 31 27 20
SEXUALITY WORK SPORTS
17 12 10
> docfreq(seeking_dfm_topics) # Counting docs.
APPEARANCE ARTS COMMUNICATION EDUCATION FAMILY FINANCE HUMOR
43 21 18 20 4 5 30
NIGHTLIFE OUTDOOR SEXUALITY SPIRITUALITY SPORTS WORK
23 14 14 5 6 12
I find the use of topfeatures and docfreq needlessly confusing. Why not have freq_words, (or freq_tokens) and freq_docs? Both should have an “n” argument to show just the top few. Here’s an example that demonstrates how confusing the two sets of output is. topfeatures sorts by frequency by default, while docfreq sorts alphabetically. Since Appearance came out #1 in both, I assumed they were sorted the same way and that Humor had gone from #2 to #7. (This is the WordStat seeking dictionary applied to the seeking.csv).