View source: R/tf_normalizator.R
idf | R Documentation |
The aims of this function is to compute the Inverse document-frequencies
possibly using different functions. The standard one is the log2
idf(dtm, fun = log2, adjust = TRUE, force = FALSE)
dtm |
A |
fun |
The weighting function for the ratio of document-frequencies |
adjust |
If |
force |
(lgl) if |
A numerical vector representing the inverse document-frequencies
data(liu_dtm) idf(liu_dtm) idf(liu_dtm, adjust = FALSE) idf(liu_dtm, fun = log)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.