calc_idf | R Documentation |
Computes the inverse document frequency (IDF) for each term in a term-document matrix. IDF is calculated as log(N/df) where N is the total number of documents and df is the document frequency of the term.
calc_idf(tdm)
tdm |
A term-document matrix |
A numeric vector of inverse document frequencies for each term
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.