在java中使用R编程 [英] using R programming in java

查看:143
本文介绍了在java中使用R编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在研究 Java 上的复杂统计项目。我们在 R编程语言中完成了原始代码。有没有办法将此代码转换为 Java 代码(转换器)或者我们如何在< R 中使用 Java 项目?

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 Java code (converter) or otherwise how can we use R in a Java project?

推荐答案

虽然我不知道'转换器' ,有一个名为rJava的接口,它允许你直接从Java运行R代码。

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是一个简单的R-to-Java接口。
它与.C / .Call C
接口相当。 rJava在R和Java之间提供了一个低级
桥(通过JNI)。
它允许创建对象,调用
方法并从R访问Java
对象的字段。

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.

在某种意义上, rJava是JRI
(Java / R接口),它提供
相反的方向 - 从
Java调用R. JRI现在作为
rJava包的一部分发货,尽管仍然可以将
用作单独的实体
(特别是用于开发)。
目前rJava用作
JGR,iPlots和JavaGD
软件/软件包的一部分。

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.

这篇关于在java中使用R编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆