powered by
For a dfm object, returns a frequency for each feature, computed across all documents in the dfm. This is equivalent to colSums(x).
colSums(x)
featfreq(x)
a (named) numeric vector of feature frequencies
a dfm
dfm_tfidf(), dfm_weight()
dfm_tfidf()
dfm_weight()
dfmat <- dfm(tokens(data_char_sampletext)) featfreq(dfmat)
Run the code above in your browser using DataLab