View source: R/tf_normalizator.R
tf_normalizator | R Documentation |
The aims of this function is to normalize the term frequencies in a document-term frequencies, i.e. each frequencies of each documents in the matrix is divided by the sum of all the frequencies of the terms in the document. a
tf_normalizator(dtm, force = FALSE)
dtm |
A |
force |
(lgl) if |
A DocumentTermMatrix
for wich the sum of the
frequencies of each document is 1 (or 0 if it is an empty one)
data(liu_dtm) tf_normalizator(liu_dtm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.