powered by
Create a data frame source.
DataframeSource(x)
A data frame giving the texts.
An object inheriting from DataframeSource, SimpleSource, and Source.
DataframeSource
SimpleSource
Source
A data frame source interprets each row of the data frame x as a document.
x
Source for basic information on the source infrastructure employed by package tm.
# NOT RUN { docs <- data.frame(c("This is a text.", "This another one.")) (ds <- DataframeSource(docs)) inspect(VCorpus(ds)) # }
Run the code above in your browser using DataLab