TermDocMatrix-class {tm}R Documentation

Term-document matrix

Description

A class representing a 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

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".

Extends

Class "matrix", directly.

Methods

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.1-1 Index]