Convert a quanteda::dfm of counts to the document-level word proportions
expected by OpTop::optimal_topic().
Arguments
- x
A quanteda::dfm object.
Value
A quanteda::dfm with rows weighted to document-level proportions.
Convert a quanteda::dfm of counts to the document-level word proportions
expected by OpTop::optimal_topic().
A quanteda::dfm object.
A quanteda::dfm with rows weighted to document-level proportions.