| DataframeSource {tm} | R Documentation |
Constructs a source from a data frame.
DataframeSource(object, encoding = "UTF-8")
object |
A data frame holding the texts. |
encoding |
A character giving the encoding of the file. |
An S4 object of class DataframeSource which extends the class
Source representing a data frame interpreting each row as a
document.
Ingo Feinerer
docs <- data.frame(docs = c("This is a text.", "This another one."))
(ds <- DataframeSource(docs))
inspect(Corpus(ds))