Learn R Programming

tm (version 0.4)

convertReut21578XMLPlain: Transform a Reuters21578 XML Document to a Plain Text Document

Description

Transform a Reuters21578 XML document to a plain text document.

Usage

convertReut21578XMLPlain(node, ...)

Arguments

node
an XML node representing a element from a well-formed Reuters-21578 XML file.
...
Arguments passed over by calling functions.

Value

  • A PlainTextDocument representing node.

See Also

asPlain

Examples

Run this code
reut21578 <- system.file("texts", "reut21578", package = "tm")
reut21578TDC <- Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML))
reut21578TDC[[1]]
asPlain(reut21578TDC[[1]], convertReut21578XMLPlain)

Run the code above in your browser using DataLab