Description Usage Arguments Value
Returns a tf-idf sparse matrix given a document-term matrix. This matrix is a DxT matrix, where D is the set of documents in a corpus and T are the unique terms in that corpus. The matrix reflects a count of occurences of a given term in a given document.
1 | tfidf(data_matrix)
|
data_matrix |
Sparse document-term matrix (generated with Matrix package) |
A sparse matrix with the computed tf-idf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.