Hi, can you please tel me how to retrieve String two dimensional array as
like sapply?
--
View this message in context:
http://r.789695.n4.nabble.com/Copying-to-R-a-rectangular-array-from-a-Java-class-tp3486167p3643223.html
Sent from the R help mailing list archive at Nabble.com.
___
I am happy to report that the author and maintainer of rJava informed me
that the 2-dim array in java needs sapply and .jevalArray as follows:
> conn2Arr<- sapply(.jfield(rJavaTst,sig="[[D","con2Arr"),.jevalArray)
> conn2ArrRet <-
> sapply(.jcall(rJavaTst,returnSig="[[D","retCon2Arr"),.jevalAr
I discovered that a row of a rectangular array returns, but a function
parameter is not sent to Java.
Appended bare test code: My simple Java test class source and R test code
follow:
public class RJavTest {
public static void main(String[]args) { RJavTest rJavTest=new RJavTest();
}
public fi
Bare test code: My simple Java test class source and R test code follow:
public class RJavTest {
public static void main(String[]args) { RJavTest rJavTest=new RJavTest();
}
public final static String conStg="testString";
public final static double con0dbl=1001;
public final static d
4 matches
Mail list logo