| removeSignature-methods {tm} | R Documentation |
Methods for function removeSignature in package tm.
marks
parameter in form of regular expression patterns.
newsgroup <- system.file("texts", "newsgroup", package = "tm")
news <- TextDocCol(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 = "^[+]-*[+]$")