readMail(tm.plugin.mail)
readMail()所属R语言包:tm.plugin.mail
Read In an E-Mail Document
E-Mail文档阅读
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Return a function which reads in an electronic mail document.
返回一个函数中读取的电子邮件文档。
用法----------Usage----------
readMail(DateFormat = "%d %B %Y %H:%M:%S", ...)
参数----------Arguments----------
参数:DateFormat
The format of the Date header in the mail document.
日期标头中的邮件文档的格式。
参数:...
Arguments for the generator function.
对生成器函数的参数。
Details
详细信息----------Details----------
Formally this function is a function generator, i.e., it returns a function (which in turn reads in a mail document) with a well-defined signature, but can access passed over arguments (e.g., to specify the format of the Date header in the e-mail via DateFormat) via lexical scoping.
从形式上看,这个函数是一个函数发生器,即,它返回一个函数(这反过来又在邮件文件中读取)一个明确的签名,但可以访问传递过来的参数(例如,在指定格式的日期标头通过DateFormat)通过电子邮件词法范围。
值----------Value----------
A function with the signature elem, language, id:
Afunction的签名elem, language, id:
参数:elem
A list with the two named elements content and uri. The first element must hold the document to be read in, the second element must hold a call to extract this document. The call is evaluated upon a request for load on demand.
Alist与两个元素content和uri。第一个元素必须保存文档阅读,第二个元素必须保持呼叫提取此文件。该呼叫将被评估的请求时的负载点播。
参数:language
A character vector giving the text's language.
Acharacter矢量提供的文本的语言。
参数:id
A character vector representing a unique identification string for the returned text document.
Acharacter向量,代表一个独特的标识字符串,返回的文本文件。
The function returns a MailDocument representing content.
该函数返回一个MailDocument代表content。
(作者)----------Author(s)----------
Ingo Feinerer
参见----------See Also----------
strptime for date format specifications.
strptime的日期格式规范。
实例----------Examples----------
require("tm")
newsgroup <- system.file("mails", package = "tm.plugin.mail")
news <- Corpus(DirSource(newsgroup), readerControl = list(reader = readMail))
inspect(news)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|