tfidf: TF-IDF matrix

Description Usage Arguments Value

Description

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.

Usage

1
tfidf(data_matrix)

Arguments

data_matrix

Sparse document-term matrix (generated with Matrix package)

Value

A sparse matrix with the computed tf-idf


diogocamacho/rpegeos documentation built on June 4, 2019, 6:37 p.m.