Created
August 6, 2019 09:23
-
-
Save wandabwa2004/e6461ef18a71d8e3f334f5ea7dfe54c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Word frequency and topic models | |
freq <- colSums(as.matrix(dtm)) | |
ord <- order(-freq) | |
freq[head(ord)] | |
freq[tail(ord)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment