TermDocMatrix-class {tm} | R Documentation |
A class representing a sparse 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
.
Data
:Matrix
holding the sparse
matrix.Weighting
: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"
.signature(object = "TermDocMatrix")
: Return the
sparse matrix.signature(object = "TermDocMatrix")
: Sets the
sparse matrix.signature(object = "TermDocMatrix")
: Returns the
weighting mode.signature(object = "TermDocMatrix")
: Sets the
weighting mode.Ingo Feinerer