jrectRef-class | R Documentation |
References to java arrays that are guaranteed to be rectangular, i.e similar to R arrays
Objects of this class should *not* be created directly. Instead, they usually come as a result of a java method call.
jsig
:JNI signature of the array type
jobj
:Internal identifier of the object
jclass
:Inherited from jobjRef
, but unspecified
dimension
:dimension vector of the array
Class "jarrayRef"
, directly.
Class "jobjRef"
, by class "jarrayRef", distance 2.
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 the array (like R does). This gives what would be
returned by array.length
in java.
signature(object = "jrectRef")
: ...
signature(x = "jrectRef")
: R indexing of rectangular java arrays
signature(x = "jrectRef")
: extracts the dimensions of the array
signature(x = "jrectRef")
: sets the dimensions of the array
signature(x = "jrectRef")
: unique objects in the array
signature(x = "jrectRef")
: see duplicated
signature(x = "jrectRef")
: see anyDuplicated
signature(x = "jrectRef")
: returns a new array with elements from x in order
signature(x = "jrectRef")
: returns a new array with elements from x reversed
signature(x = "jrectRef")
: the smallest object in the array (in the sense of the Comparable interface)
signature(x = "jrectRef")
: the biggest object in the array (in the sense of the Comparable interface)
signature(x = "jrectRef")
: the range of the array (in the sense of the Comparable interface)
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
array$length
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.