asPlain-methods {tm}R Documentation

Methods for Function asPlain in Package ‘tm’

Description

Methods for function asPlain in package tm.

Methods

object = "NewsgroupDocument"
Converts object to a plain text document.
object = "PlainTextDocument"
Returns object.
object = "XMLTextDocument", FUN
Converts object to a PlainTextDocument by applying FUN on the XML root node and returns the new object.
object = "Reuters21578Document"
Converts object to a PlainTextDocument.
object = "RCV1Document"
Converts object to a PlainTextDocument.
object = "StructuredTextDocument"
Converts object to a plain text document.

See Also

convertReut21578XMLPlain convertRCV1Plain

Use getTransformations to list available transformation (mapping) functions.

Examples

reut21578 <- system.file("texts", "reut21578", package = "tm")
reut21578TDC <- Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML, language = "en_US", load = TRUE))
reut21578TDC[[1]]
asPlain(reut21578TDC[[1]])

[Package tm version 0.3-3 Index]