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

R语言 simecol包 as.simObj()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 02:36:14 | 显示全部楼层 |阅读模式
as.simObj(simecol)
as.simObj()所属R语言包:simecol

                                        Coerce simObj Objects to Lists and Vice-Versa
                                         的胁迫simObj对象名单和反之亦然

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

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

These functions can be used to coerce (i.e. convert) simecol model objects (simObj objects) to ordinary lists.
这些功能可以用来要挟(即转换)simecol的模型对象(simObj对象)普通列表。


用法----------Usage----------


## S4 method for signature 'list'
as.simObj(x, ...)
## S4 method for signature 'simObj'
as.list(x, ...)
## alternative usage:
# as(x, "list")
# as(x, "simObj")



参数----------Arguments----------

参数:x
object to be coerced
反对强迫


参数:...
for compatibility
的兼容性


Details

详细信息----------Details----------

Function as.list converts a simObj model to an ordinary list with an additional element 'class' storing the class name of the original object.
函数as.list转换为simObj模型,一个普通的列表与一个额外的元素“类”存储的原始对象的类名。

Function as.simObj converts in the opposite direction where the type of the object to be created is determined by a class name stored in the list element 'class'. If it is missing or contains a non-existing class name, an error message is printed. Additional list elements which are not slot names of the corresponding S4 object are omitted.
向相反的方向要创建的对象的类型是由存储在一个类名的列表元素的类的转换函数as.simObj。如果丢失或包含不存在的类的名称,一个错误信息被打印出来。其他列表中的元素,这是不S4对象相应的插槽名称被省略了。


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

odeModel, new, as, as.list, simecol-package
odeModel,new,as,as.list,simecol-package


实例----------Examples----------


data(lv3)
llv3 <- as(lv3, "list")
olv3 <- as(llv3, "simObj")

llv3 <- as.list(lv3)
olv3 <- as.simObj(llv3)

dput(as.list(lv3), control="useSource")
## Not run: [#不运行:]
## save human readable object representation[#拯救人类可读的对象表示]
dput(as.list(lv3), file="lv3.R", control=c("all"))
## read it back and test it[#读取和测试]
l_lv3 <- dget("lv3.R")
o_lv3 <- as.simObj(l_lv3)
plot(sim(o_lv3))

## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 22:30 , Processed in 0.034364 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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