| readPlain {tm} | R Documentation |
Read in a text document without knowledge about its internal structure and possible available metadata.
readPlain(elem, language, id)
elem |
a list with the named component |
language |
a string giving the text's language. |
id |
a unique identification string for the returned text document. |
A PlainTextDocument representing elem$content.
Ingo Feinerer
getReaders to list available reader functions.
docs <- c("This is a text.", "This another one.")
vs <- VectorSource(docs)
elem <- getElem(stepNext(vs))
(result <- readPlain(elem, "en", "id1"))
meta(result)