tm_combine

0th

Percentile

Combine Corpora, Documents, Term-Document Matrices, and Term Frequency Vectors

Combine several corpora into a single one, combine multiple documents into a corpus, combine multiple term-document matrices into a single one, or combine multiple term frequency vectors into a single term-document matrix.

Usage
"c"(..., recursive = FALSE) "c"(..., recursive = FALSE) "c"(..., recursive = FALSE) "c"(..., recursive = FALSE)
Arguments
...
Corpora, text documents, term-document matrices, or term frequency vectors.
recursive
Not used.
See Also

VCorpus, TextDocument, TermDocumentMatrix, and termFreq.

Aliases
  • c.VCorpus
  • c.TextDocument
  • c.TermDocumentMatrix
  • c.term_frequency
Examples
data("acq")
data("crude")
meta(acq, "comment", type = "corpus") <- "Acquisitions"
meta(crude, "comment", type = "corpus") <- "Crude oil"
meta(acq, "acqLabels") <- 1:50
meta(acq, "jointLabels") <- 1:50
meta(crude, "crudeLabels") <- letters[1:20]
meta(crude, "jointLabels") <- 1:20
c(acq, crude)
meta(c(acq, crude), type = "corpus")
meta(c(acq, crude))
c(acq[[30]], crude[[10]])
c(TermDocumentMatrix(acq), TermDocumentMatrix(crude))
Documentation reproduced from package tm, version 0.6-2, License: GPL-3

Community examples

Looks like there are no examples yet.