tm (version 0.5-10)

readPlain: Read In a Text Document

Description

Read in a text document without knowledge about its internal structure and possible available metadata.

Usage

readPlain(elem, language, id)

Arguments

elem
a list with the named component content which must hold the document to be read in.
language
a string giving the text's language.
id
a unique identification string for the returned text document.

Value

See Also

getReaders to list available reader functions.

Examples

Run this code
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