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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|