powered by
Read in a text document without knowledge about its internal structure and possible available metadata.
readPlain(elem, language, id)
A PlainTextDocument representing elem$content. The argument id is used as fallback if elem$uri is null.
PlainTextDocument
elem$content
id
elem$uri
a named list with the component content which must hold the document to be read in.
content
a string giving the language.
a character giving a unique identifier for the created text document.
Reader for basic information on the reader infrastructure employed by package tm.
Reader
docs <- c("This is a text.", "This another one.") vs <- VectorSource(docs) elem <- getElem(stepNext(vs)) (result <- readPlain(elem, "en", "id1")) meta(result)
Run the code above in your browser using DataLab