DataframeSource: Data Frame Source

Description Usage Arguments Details Value See Also Examples

Description

Create a data frame source.

Usage

1

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.

Examples

1
2
3
docs <- data.frame(c("This is a text.", "This another one."))
(ds <- DataframeSource(docs))
inspect(VCorpus(ds))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.