| featfreq | R Documentation |
Returns a frequency for each feature, computed across all documents.
This is equivalent to colSums(x) when x is a dfm.
featfreq(x)
x |
a dfm, tokens, or tokens_xptr object. |
a (named) numeric vector of feature frequencies.
dfm_tfidf(), dfm_weight()
dfmat <- dfm(tokens(data_char_sampletext))
featfreq(dfmat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.