using R programming in java

后端 未结 4 1708
一向
一向 2020-12-25 13:11

We are working on a complex statistical project on Java. We did the original code in the R programming language. Is there a way to convert this code to Ja

4条回答
  •  余生分开走
    2020-12-25 13:40

    While I'm unaware of a 'converter', there is an interface called rJava which will allow you to run R code directly from Java.

    http://www.rforge.net/rJava/

    rJava is a simple R-to-Java interface. It is comparable to the .C/.Call C interface. rJava provides a low-level bridge between R and Java (via JNI). It allows to create objects, call methods and access fields of Java objects from R.

    In a sense the inverse of rJava is JRI (Java/R Interface) which provides the opposite direction - calling R from Java. JRI is now shipped as a part of the rJava package, although it still can be used as a separate entity (especially for development). Currently rJava is used as a part of JGR, iPlots and JavaGD software/packages.

提交回复
热议问题