readDataframe | R Documentation |
Read in a text document from a row in a data frame.
readDataframe(elem, language, id)
elem |
a named list with the component |
language |
a string giving the language. |
id |
Not used. |
A PlainTextDocument
representing elem$content
.
Reader
for basic information on the reader infrastructure
employed by package tm.
docs <- data.frame(doc_id = c("doc_1", "doc_2"), text = c("This is a text.", "This another one."), stringsAsFactors = FALSE) ds <- DataframeSource(docs) elem <- getElem(stepNext(ds)) result <- readDataframe(elem, "en", NULL) inspect(result) meta(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.