removeSparseTerms-methods {tm} | R Documentation |
Methods for function removeSparseTerms
in package tm.
object
where those columns (i.e., terms) from
Data(object)
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 columns with a
sparse factor of less than sparse
.
data("crude") tdm <- TermDocMatrix(crude) removeSparseTerms(tdm, 0.2)