Displaying 1 result from an estimated 1 matches for "javasetarrayel".
2004 May 26
0
an SJava array question
Hi,
I'm using SJava (0.65) to interface some Java code I have and am
having trouble understanding the use of arrays. I have a function:
tmv <- function(fname) {
a <- .JavaArrayConstructor("int", dim=c(3,0))
.JavaSetArrayElement(a, .JavaArrayConstructor("int", dim=3), 1)
.JavaSetArrayElement(a, .JavaArrayConstructor("int", dim=3), 2)
.JavaSetArrayElement(a, .JavaArrayConstructor("int", dim=3), 3)
for (i in 1:3) {
for (j in 1:3) {
.JavaSetArrayElement(a, as....