[R] How do I use simple calls to java methods?

Hurr hill0093 at umn.edu
Tue Oct 22 23:50:35 CEST 2013

Thanks so much for the reply.
I did the search for "rJava examples" and found the Scott 
Hoover instructions which seemed like exactly what I needed.
I compiled the java code and copied myExchange.java and 
myExchange.class to the directory where I started R where 
I did and the calls suggested inside worked.
But there are no parameters passed in the examples.
I need to do something like this:
dateStg <- "201310221439591234"
doubleLin <- .jcall(CalqsLin, "D", "linTimOfCalqsStgIsLev",dateStg,-4)
doubleLin <- .jcall(CalqsLin, "D",
where the latter two parameters are passed to linTimOfCalqsStgIsLev.
Neither way works and I cannot understand the .jcall() instructions in
rJava.pdf well enough.
I'll keep trying, but would like help.

View this message in context: http://r.789695.n4.nabble.com/How-do-I-use-simple-calls-to-java-methods-tp4678753p4678834.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list