Learn R Programming

tm.plugin.mail (version 0.0-1)

removeCitation: Remove E-Mail Citations

Description

Remove citations, i.e., lines beginning with >, from an e-mail message.

Usage

## S3 method for class 'MailDocument':
removeCitation(x)

Arguments

x
A mail document.

See Also

removeMultipart to remove non-text parts from multipart e-mail messages, and removeSignature to remove signature lines from e-mail messages.

Examples

Run this code
require("tm")
newsgroup <- system.file("mails", package = "tm.plugin.mail")
news <- Corpus(DirSource(newsgroup), readerControl = list(reader = readMail))
news[[6]]
removeCitation(news[[6]])

Run the code above in your browser using DataLab