DataframeSource

0th

Percentile

Data Frame Source

Create a data frame source.

Usage
DataframeSource(x)
Arguments
x
A data frame giving the texts.
Details

A data frame source interprets each row of the data frame x as a document.

Value

An object inheriting from DataframeSource, SimpleSource, and Source.

See Also

Source for basic information on the source infrastructure employed by package tm.

Aliases
  • DataframeSource
Examples
docs <- data.frame(c("This is a text.", "This another one."))
(ds <- DataframeSource(docs))
inspect(VCorpus(ds))
Documentation reproduced from package tm, version 0.6-2, License: GPL-3

Community examples

Looks like there are no examples yet.