removesignature.html

来自「R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面」· HTML 代码 · 共 43 行

HTML
43
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Methods for Function removeSignature in Package &lsquo;tm&rsquo;</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>

<table width="100%" summary="page for removeSignature-methods {tm}"><tr><td>removeSignature-methods {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Methods for Function removeSignature in Package &lsquo;tm&rsquo;</h2>


<h3>Description</h3>

<p>
Methods for function <code>removeSignature</code> in package <span class="pkg">tm</span>.
</p>


<h3>Methods</h3>

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

<h3>Examples</h3>

<pre>
newsgroup &lt;- system.file("texts", "newsgroup", package = "tm")
news &lt;- 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 = "^[+]-*[+]$")
</pre>



<hr><div align="center">[Package <em>tm</em> version 0.3 <a href="00Index.html">Index]</a></div>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?