Learn R Programming

tm (version 0.3-3)

convertRCV1Plain: Transform a RCV1 Document to a Plain Text Document

Description

Transform a Reuters Corpus Volume 1 XML document to a plain text document.

Usage

convertRCV1Plain(node, ...)

Arguments

node
A RCV1Document representing a well-formed RCV1 XML file.
...
Arguments passed over by calling functions.

Value

  • A PlainTextDocument representing node.

See Also

asPlain

Examples

Run this code
rcv1 <- system.file("texts", "rcv1", package = "tm")
rcv1TDC <- Corpus(DirSource(rcv1), readerControl = list(reader = readRCV1))
rcv1TDC[[1]]
asPlain(rcv1TDC[[1]], convertRCV1Plain)

Run the code above in your browser using DataLab