Integration of R language and Java

Source: Internet
Author: User

I plan to be a "R-based big data mining platform" with the same journal, so I read something about R language, but this is just a domineering name. I can do it very little now.

I am not familiar with R, and I am not very familiar with Java. Even if I make something, it is actually just a small toy, just a demo.

But after reading the R, I still benefited a lot. At least I knew how to handle the data later.

I have written several books on the Internet. R in a nutshell is quite good, with all kinds of basic lectures, and the sample is easy to understand.

In integration, the rserve method is used, Project address: http://www.rforge.net/Rserve/

The installation method is actually very simple:

Step 1: Enter the r language platform and enter install. Packages ("rserve ")

Step 2: After the installation is complete, load the rserve package in the r language platform and enter the library (rserve)

Step 3: Start rserve and enter rserve ()

Step 4: Start eclipse and.

Step 5: Let's test the following example:

Rconnection c =NewRconnection (); rexp x= C. eval ("R. version. String"); System. Out. println (X. asstring ());

 

 
Finally, if the operation is correct, the current R version is displayed.
 
During integration, I got a little confused. I was not familiar with the R rules. Without the Library (rserve), I went straight to rserve (), and then reported an error, read the official FAQ.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.