Learn R Programming

RcmdrPlugin.temis (version 0.7.10)

subsetCorpusByVarDlg: Subset Corpus by Levels of a Variable

Description

Create a subset of the corpus by retaining only the documents for which the chosen variable is equal to specified levels.

Arguments

Details

This operation will restrict the corpus, document-term matrix and the “corpusVars” data set so that they only contain documents with or without specified terms. Previously run analyses like correspondence analysis or hierarchical clustering will be removed to prevent confusion.

If you choose to save the original corpus, you will be able to restore it later from the Text mining -> Subset corpus -> Restore original corpus menu. Warning: checking this option will erase an existing backup if present. Like subsetting, restoring the original corpus removes existing correspondence analysis and hierarchical clustering objects.

See Also

setCorpusVariables, meta, DocumentTermMatrix