featfreq | R Documentation |
For a dfm object, returns a frequency for each feature, computed
across all documents in the dfm. This is equivalent to colSums(x)
.
featfreq(x)
x |
a dfm |
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.