Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rep

Creates java arrays by cloning


Description

Creates a java array by cloning a reference several times

Methods

rep

signature(object = "jobjRef"): ...

rep

signature(object = "jarrayRef"): ...

rep

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

See Also

Examples

if (!nzchar(Sys.getenv("NOAWT"))) {
  p <- .jnew( "java.awt.Point" )
  a <- rep( p, 10 )

  stopifnot( dim(a) == c(10L ) )
  a[[1]]$move( 10L, 50L )
  stopifnot( a[[2]]$getX() == 0.0 )
}

rJava

Low-Level R to Java Interface

v1.0-4
LGPL-2.1
Authors
Simon Urbanek <simon.urbanek@r-project.org>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.