Description Usage Arguments Value See Also Examples
Read in a text document from a row in a data frame.
1 | 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.
1 2 3 4 5 6 7 8 | 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.