search for: connstgret

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

2011 Apr 30
3
Copying to R a rectangular array from a Java class
...retCon2Arr() { return(con2Arr); } } library(rJava) .jinit() .jaddClassPath("C:/ad/j") # a directory on my disk print(.jclassPath()) rJavaTst <- .jnew("RJavTest") # compilation of class code connStg <- .jfield(rJavaTst,sig="S","conStg") print(connStg) connStgRet <- .jcall(rJavaTst,returnSig="S","retConStg") print(connStgRet) conn1Arr <- .jfield(rJavaTst,sig="[D","con1Arr") print(conn1Arr) print(conn1Arr[2]) conn1ArrRet <- .jcall(rJavaTst,returnSig="[D","retCon1Arr") print(conn1ArrRet) pri...