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

R语言 SoDA包 demoSource-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:22:06 | 显示全部楼层 |阅读模式
demoSource-class(SoDA)
demoSource-class()所属R语言包:SoDA

                                        Class "demoSource" for objects used with demoSource() function
                                         类“demoSource”的对象使用demoSource()函数

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Objects from this class are created and manipulated during interactive sessions with the demoSource() function.  They  
从这个类的对象的创建和操作的互动式会议期间与demoSource()功能。他们


类对象----------Objects from the Class----------

Objects can be created by calls of the form new("demoSource", ...). Generally, objects are created by demoSource() and modified by the various utility functions that process control and demo input. Objects from the class are normally used to save and restart an incomplete demo.
可以创建对象通过调用的形式new("demoSource", ...)。一般情况下,对象的创建demoSource()的各种实用功能和修改的过程控制和演示输入。从类的对象通常被用来保存并重新启动一个不完整的演示。


插槽----------Slots----------




lines: Object of class "character" holding the lines of the source connection.
lines:类的对象"character"源连接线。




pos: Current position in the source buffer (the number of lines that have been processed so far).
pos:源缓冲区中的当前位置(至今已处理的行数)。




partial: While an expression is being parsed, lines in the current expression are copied here.
partial:当一个表达式被解析,在当前表达式的行复制到这里。




expr: When an expression has been parsed, the parsed expression is stored here.
expr:当一个表达式已经被解析,解析表达式存储在这里。




value: When an expression has been evaluated, the value is stored here.
value:当一个表达式进行了评估,该值被存储在这里。




envir: Object of class "environment", the environment in which expressions have been evaluated.
envir:对象类"environment",环境的表达式进行了评估。




state: Character string used to indicate the current state of the demo.  States "partial", "parsed", and "evaluated" correspond having read some (or all) of the current input, to having parsed that (and determined that it's a complete expression), and having evaluated the expression.
state:字符串,用于指示当前状态的演示。国"partial","parsed"和"evaluated"对应的阅读部分(或全部)的电流输入,经解析(决定了它是一个完整的表达),并评估表达。

See demoSource() for how one gets to these states; for example, the typical "" control input first reads and parses to a complete expression, and then on the next such input evaluates.
见demoSource()如何得到这些国家,例如,典型的""控制输入中读取并解析一个完整的表达式,然后在下次输入的计算结果。

The various utility functions used by  demoSource() modify the demo object they receive to reflect the step(s) taken, and then return the modified object.  The call to demoSource() itself returns (invisibly) the demo object as it stands when the demo exits.  Using the returned object, one can pause and resume a demo or interleave multiple demos.
使用的各种实用功能demoSource()修改演示的对象,他们收到的反映采取的步骤(s),然后返回修改后的对象。调用demoSource()本身返回(不可见)的演示对象,因为它代表了当演示结束。使用返回的对象,可以暂停和恢复演示或交叉的多个演示。


参见----------See Also----------

demoSource()
demoSource()

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-8 10:29 , Processed in 0.027973 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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