rep | R Documentation |
Creates a java array by cloning a reference several times
signature(object = "jobjRef")
: ...
signature(object = "jarrayRef")
: ...
signature(object = "jrectRef")
: ...
rep
or .jarray
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 )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.