TermDocMatrix-class {tm}R Documentation

Term-document matrix

Description

A class representing a sparse term-document matrix. A column represents a term, and a row the ID of a text document, respectively.

Objects from the Class

Objects can be created by calls of the form new("TermDocMatrix",...) or by calling the function TermDocMatrix.

Slots

Data:
Object of class Matrix holding the sparse matrix.
Weighting:
Object of class character containing the mode which was applied on the matrix. Possible are term frequency "tf", term frequency-inverse document frequency "tf-idf", binary "bin" and logical "logical".

Methods

Data
signature(object = "TermDocMatrix"): return the sparse matrix
Data<-
signature(object = "TermDocMatrix"): sets the sparse matrix
Weighting
signature(object = "TermDocMatrix"): returns the weighting mode
Weighting<-
signature(object = "TermDocMatrix"): sets the weighting mode

Author(s)

Ingo Feinerer

See Also

TermDocMatrix


[Package tm version 0.2-1 Index]