readPlain | R Documentation |
Read in a text document without knowledge about its internal structure and possible available metadata.
readPlain(elem, language, id)
elem |
a named list with the component |
language |
a string giving the language. |
id |
a character giving a unique identifier for the created text document. |
A PlainTextDocument
representing elem$content
. The
argument id
is used as fallback if elem$uri
is null.
Reader
for basic information on the reader infrastructure
employed by package tm.
docs <- c("This is a text.", "This another one.")
vs <- VectorSource(docs)
elem <- getElem(stepNext(vs))
(result <- readPlain(elem, "en", "id1"))
meta(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.