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

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

[复制链接]
发表于 2012-2-22 21:08:21 | 显示全部楼层 |阅读模式
jrectRef-class(rJava)
jrectRef-class()所属R语言包:rJava

                                        Rectangular java arrays
                                         矩形Java数组

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

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

References to java arrays that are guaranteed to be rectangular, i.e similar
Java数组,保证是长方形的,即类似的参考


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

Objects of this class should *not* be created directly.  Instead, they usually come as a result of a java method call.
这个类的对象*不*直接创建。相反,他们通常是作为一个Java方法调用的结果。


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




jsig: JNI signature of the array type
jsig:JNI签名的数组类型




jobj: Internal identifier of the object
jobj:内部标识符的对象




jclass: Inherited from jobjRef, but unspecified
jclassjobjRef:继承,但不确定




dimension: dimension vector of the array
dimension:数组的维向量


延伸----------Extends----------

Class "jarrayRef", directly. Class "jobjRef", by class "jarrayRef", distance 2.
类"jarrayRef",直接。类"jobjRef",类“jarrayRef”,距离为2。


方法----------Methods----------




length signature(x = "jrectRef"): The number of elements in the array.  Note that if the array has more than one dimension,  it gives the number of arrays in the first dimension, and not the total  number of atomic objects in tha array (like R does). This gives what would be
长度signature(x = "jrectRef"):数组中的元素的数量。请注意,如果数组有多个维度,它给人的第一维阵列的数量,而不是原子对象总数THA阵列(如R那样)。这给了会是什么




str signature(object = "jrectRef"): ...
STRsignature(object = "jrectRef"):...




[ signature(x = "jrectRef"): R indexing of rectangular java arrays
[signature(x = "jrectRef"):R矩形Java数组索引




dim signature(x = "jrectRef"): extracts the dimensions of the array
朦胧signature(x = "jrectRef"):提取数组的尺寸




dim<- signature(x = "jrectRef"): sets the dimensions of the array
昏暗< - signature(x = "jrectRef"):设置该数组的尺寸




unique signature(x = "jrectRef"): unique objects in the array
独特的signature(x = "jrectRef"):数组中的唯一对象




duplicated signature(x = "jrectRef"): see duplicated
重复signature(x = "jrectRef"):看到duplicated




anyDuplicated signature(x = "jrectRef"): see anyDuplicated
anyDuplicatedsignature(x = "jrectRef"):看到anyDuplicated




sort signature(x = "jrectRef"): returns a new array with elements from x in order
排序signature(x = "jrectRef"):返回从x的元素,以一个新的数组




rev signature(x = "jrectRef"): returns a new array with elements from x reversed
转signature(x = "jrectRef"):返回一个与x的元素的新数组逆转




min signature(x = "jrectRef"): the smallest object in the array (in the sense of the Comparable interface)
分signature(x = "jrectRef"):最小的数组中的对象(Comparable接口的意义)




max signature(x = "jrectRef"): the biggest object in the array (in the sense of the Comparable interface)
最大signature(x = "jrectRef"):最大的数组中的对象(Comparable接口的意义)




range signature(x = "jrectRef"): the range of the array (in the sense of the Comparable interface)
范围signature(x = "jrectRef"):阵列的范围(Comparable接口的意义)


举例----------Examples----------



v <- new( J("java.util.Vector") )
v$add( "hello" )
v$add( "world" )
v$add( new( J("java.lang.Double"), "10.2" ) )
array <- v$toArray()

array[ c(TRUE,FALSE,TRUE) ]
array[ 1:2 ]
array[ -3 ]

# length [长度]
length( array )


# also works as a pseudo field as in java[作为一个伪字段,也可以作为在Java]
array$length





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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-22 15:52 , Processed in 0.029670 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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