removeSparseTerms
From tm v0.62
by Ingo Feinerer
Remove Sparse Terms from a TermDocument Matrix
Remove sparse terms from a documentterm or termdocument matrix.
Usage
removeSparseTerms(x, sparse)
Arguments
 x
 A
DocumentTermMatrix
or aTermDocumentMatrix
.  sparse
 A numeric for the maximal allowed sparsity in the range from bigger zero to smaller one.
Value

A termdocument matrix where those terms from
x
are
removed which have at least a sparse
percentage of empty (i.e.,
terms occurring 0 times in a document) elements. I.e., the resulting
matrix contains only terms with a sparse factor of less than
sparse
.
Examples
data("crude")
tdm < TermDocumentMatrix(crude)
removeSparseTerms(tdm, 0.2)
Community examples
Looks like there are no examples yet.