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

R语言 Simile包 tcl.paired.to.array()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 02:51:09 | 显示全部楼层 |阅读模式
tcl.paired.to.array(Simile)
tcl.paired.to.array()所属R语言包:Simile

                                         Re-format model value array
                                         重新格式化模型值的数组

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

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

Convert a set of values from a Simile model component from a nested list of alternating indices and values to an R array structure
一组转换的一个比喻从一个嵌套列表的交替指数和值的R阵列结构模型组件的值


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



tcl.paired.to.array(paired, dims, as.enum.types)



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

参数:paired
Nested list of alternating indices and values  
交替指数和值的嵌套列表


参数:dims
Dimensions of R array structure  
的R阵列结构尺寸


参数:as.enum.types
If TRUE, values will be converted to R character strings, otherwise they are numeric  
如果是TRUE,值将被转换为R字符的字符串,否则它们是数字


值----------Value----------

A numerical value or array of numerical values, from the Tcl value or array
一个数值或数值数组的,从Tcl值或数组


注意----------Note----------

Note that the dimensions of the array returned will be in the opposite order from those supplied in the 'dims' argument. This is because Simile's convention is to list the outermost dimension first, whereas R's is to list the outermost dimension last.
请注意,返回的数组的尺寸会以相反的顺序在“变暗”的说法提供。这是因为比喻的惯例是先列出了最外层的尺寸,而R是最后列出的最外层尺寸。


(作者)----------Author(s)----------



Jasper Taylor




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

tcl.paired.to.list
tcl.paired.to.list


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


Simile:::tcl.paired.to.array("1 {1 7 2 4} 2 {1 8 2 6} 3 {1 9 2 1}",
c(3,2), FALSE)
#     [,1] [,2] [,3][[1] [2] [3]]
#[1,]    7    8    9[[1] 7 8 9]
#[2,]    4    6    1[[2] 4 6 1]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-24 14:38 , Processed in 0.027006 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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