Remove terms from a Document-Term-Matrix and documents with no terms based on the term frequency inverse document frequency.
Either giving in the maximum number of terms (argument top), the tfidf cutoff (argument cutoff)
or a quantile (argument prob)
dtmremovetfidf(dtm, top, cutoff, prob, remove_emptydocs = TRUE)a sparse Matrix as returned by sparseMatrix
where terms with high tfidf are kept and documents without any remaining terms are removed
an object class "dgCMatrix"
integer with the number of terms which should be kept as defined by the highest mean tfidf
numeric cutoff value to keep only terms in dtm where the tfidf obtained by dtmtfidf is higher than this value
numeric quantile indicating to keep only terms in dtm where the tfidf obtained by dtmtfidf is higher than
the prob percent quantile
logical indicating to remove documents containing no more terms after the term removal is executed. Defaults to TRUE.