readPlain {tm}R Documentation

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

A PlainTextDocument representing elem$content.

Author(s)

Ingo Feinerer

See Also

getReaders to list available reader functions.

Examples

docs <- c("This is a text.", "This another one.")
vs <- VectorSource(docs)
elem <- getElem(stepNext(vs))
(result <- readPlain(elem, "en", "id1"))
meta(result)

[Package tm version 0.5-10 Index]