HashMap as return value from Java method in R?

Posted by Martin on Stack Overflow See other posts from Stack Overflow or by Martin
Published on 2010-03-16T18:36:59Z Indexed on 2010/03/16 18:41 UTC
Read the original article Hit count: 183

Filed under:
|

Hi,

is it possible to return a HashMap to R with the rJava extension of R? E.g. I have a method in Java, which returns a HashMap and I want this HashMap use in R. I tried:

.jcall(javaObj, "Ljava/util/HashMap", "getDbInfoMap")

This doesn't work.
Do I have to put everything into a String[], that I want to pass to R from Java? Or is there another possibility?

Any help/info on this would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about r

    Related posts about java