featfreq {quanteda} | R Documentation |
Compute the frequencies of features
Description
For a dfm object, returns a frequency for each feature, computed
across all documents in the dfm. This is equivalent to colSums(x)
.
Usage
featfreq(x)
Arguments
x |
a dfm |
Value
a (named) numeric vector of feature frequencies
See Also
Examples
dfmat <- dfm(tokens(data_char_sampletext))
featfreq(dfmat)
[Package quanteda version 4.0.2 Index]