找回密码
 注册
查看: 432|回复: 0

R语言 tm.plugin.mail包 readMail()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 10:45:22 | 显示全部楼层 |阅读模式
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-19 02:07 , Processed in 0.026750 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表