c-methods {tm}R Documentation

Methods for Function c in Package ‘tm’

Description

Methods for generic function c in package tm.

Details

Note that meta data from single items (corpora or documents) is preserved during concatenation and intelligently merged into the newly created corpus. Although we use a sophisticated merging strategy (by using a binary tree for corpus specific meta data and by joining document level specific meta data in data frames) you should check the newly created meta data for consistency when merging corpora with (partly) identical meta data. However, in most cases the meta data merging strategy will produce perfectly combined and arranged meta data structures.

Methods

x = "Corpus"
Concatenates several text document collections to a single one.
x = "TextDocument"
Concatenates several text documents to a single text document collection.

Examples

data("acq")
data("crude")
summary(c(acq,crude))
summary(c(acq[[30]],crude[[10]]))

[Package tm version 0.3-3 Index]