Simple program to call R from Java using Eclipse and Rserve

前端 未结 4 541
我在风中等你
我在风中等你 2020-12-13 07:04

My application must perform R operations such as:

m = matrix(sample(0:1,100, rep=T),ncol=10)

The results should be available to a Java appl

4条回答
  •  自闭症患者
    2020-12-13 07:47

    Quick ones, trying to separate tasks:

    1. Rserve can be installed by itself. Start there.

    2. Rserve has sample clients. Try to the Java samples to work.

    3. From there, write your new program.

    4. Eclipse is entirely optional. You do not have to use it. If this is one more step to learn, consider skipping it. Once 1 to 3 are fine, learn how to express build dependencies in Eclipse.

提交回复
热议问题