rep

0th

Percentile

Creates java arrays by cloning

Creates a java array by cloning a reference several times

See Also

rep or .jarray

Aliases
  • rep,jarrayRef-method
  • rep,jobjRef-method
  • rep,jrectRef-method
Examples
.jinit()
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 )
}
Documentation reproduced from package rJava, version 0.9-1, License: GPL-2

Community examples

Looks like there are no examples yet.