4

I'm new to statistics, is there any way through which codes written in R statistics software be called from java library. I got some idea about JSC - "Java Statistical Class", but still not finding the way.

I found this under stackexchange: https://stats.stackexchange.com/questions/37466/open-source-java-library-for-statistics-at-the-level-offered-by-a-graduate-stati/60711#60711

1
  • This probably belongs on StackOverflow, since it's about coding, not directly about statistics. Commented Jun 3, 2013 at 12:44

2 Answers 2

2

You can use RCaller I am working on this at the moment and some things work, some don't but it is worth a try.

Sign up to request clarification or add additional context in comments.

Comments

0

Probably rJava is the library you need.

The JRI component (formerly an independent project) lets you execute R functions from within Java. You'll have to translate your original R-code to your Java code using JRI's api, but that's reasonably straight-forward and the library performs fast.

You can install rJava from within R or on ubuntu as a package via apt.

I would be careful with the Java Statistical Classes. For me it calculated nonsense in some cases, so better cross-check the results with R should you decide to use that one.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.