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 "term frequency", term frequency-inverse document frequency "term frequency - inverse document frequency", binary "binary" 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.3-3 Index]