Reputation: 5059
I'm working on an android application which need to generate descriptive statistics ( mean, sd, min max, quartiles) and CDF / PDF histogram plots from local SQLite DB data.
R is very good with doing such statistical analysis and was wondering if it is possible to call R from Java in Android application ?
If it is not possible to call R from Java in Android , what would be a recommend approach ( package) for such statistical analysis in Android applications ?
Need to have this running w/o connectivity, so a server/cloud approach doesn't work.
Upvotes: 2
Views: 605
Reputation: 766
I am not sure if it's possible to run R exactly in android. But there is special project (server) - https://rforge.net/Rserve/
You run this server on special port and connect to this port with TCP from java code (it can be local machine or remote machine).
I think you can try to run R locally (have no idea how at this moment) on android device and connect to localhost from your code.
First link which I found in google - http://www.r-bloggers.com/install-r-in-android-via-gnuroot-no-root-required/ Never tried.
Upvotes: 1