removeSignature-methods {tm}R Documentation

Methods for Function removeSignature in Package ‘tm’

Description

Methods for function removeSignature in package tm.

Methods

object = "PlainTextDocument"
Removes signature lines from an e-mail message and return the object. Additional signature identification marks can be provided via the optional marks parameter in form of regular expression patterns.

See Also

Use getTransformations to list available transformation (mapping) functions.

Examples

newsgroup <- system.file("texts", "newsgroup", package = "tm")
news <- Corpus(DirSource(newsgroup), readerControl = list(reader = readNewsgroup, language = "en_US", load = TRUE))
asPlain(news[[4]])
removeSignature(asPlain(news[[4]]))
asPlain(news[[5]])
removeSignature(asPlain(news[[5]]), marks = "^[+]-*[+]$")

[Package tm version 0.3-3 Index]