search for: evalarray

Displaying 1 result from an estimated 1 matches for "evalarray".

Did you mean: valarray
2010 Dec 28
1
rJava question
...and back using rJava, but this method is not documented and I wonder if there is a better way? Anyway, here is what I found works: (m = matrix(as.double(1:12),3,4)) [shows m as you would expect] jtest <- .jnew("JTest") (v <- .jcall(jtest, '[[D], 'myfunc', .jarray(m), evalArray=FALSE)) [shows v = m + 10] Here the JTest class has a method named myfunc that accepts a double[][] and returns a double[][]. It simply adds 10 to every element. The parameter 'evalArray' is confusing because when evalArray=TRUE the result is NOT evaluated (a list is returned that you the...