Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'MailDocument':
removeSignature(x, marks = character(0))
--
(dash dash blank) is always considered.removeCitation
to remove e-mail citations, and
removeMultipart
to remove non-text parts from multipart
e-mail messages.require("tm")
newsgroup <- system.file("mails", package = "tm.plugin.mail")
news <- Corpus(DirSource(newsgroup), readerControl = list(reader = readMail))
news[[5]]
removeSignature(news[[5]], marks = "^[+]-*[+]$")
Run the code above in your browser using DataLab