TermDocMatrix-class {tm} | R Documentation |
A class representing a term-document matrix. A column represents a term, and a row the ID of a text document, respectively.
Objects can be created by calls of the form
new("TermDocMatrix",...)
or by calling the function
TermDocMatrix
.
Weighting
:"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"
.
Class "matrix"
, directly.
signature(object = "TermDocMatrix")
: returns the
weighting modesignature(object = "TermDocMatrix")
: sets the
weighting modeIngo Feinerer