• Post Reply Bookmark Topic Watch Topic
  • New Topic

R code to Java  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends...

can anybody tell me how to convert the R code into Java code? Or anybody can help me to convert the R code to Java code??
 
Marshal
Posts: 5479
377
BSD
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you understand the logic of R code, meaning what the R app is doing?
 
geethu th
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually its an R implementation of an algorithm. I have the algorithm, its R code and input data with me. But I don't know the R. Actually, I want the code in Java and so that, I can do my own modification in that code. Can you help me to convert the R code into Java.. or Suggest me somebody who knows both R and Java..

Thanks in advance.
 
Liutauras Vilda
Marshal
Posts: 5479
377
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds fuzzy.

If you were know the logic behind the algorithm, you could rewrite the algorithm in Java yourself (I assumed in R's code there is nothing R specifics what couldn't be achieved with Java and I imply you know Java).
But since you don't know what this algorithm is doing at all, hm... I know for sure we have some people here who know R fairly well. You can try to post this algorithm here and might somebody will be interested to research it.

I hope it isn't 15.000 lines of code. Don't post if that's the case or very similar to it.
 
geethu th
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its really a big code. Could you please give me any email id so that I can send the entire code and algorithm to you. Its really urgent...
 
Liutauras Vilda
Marshal
Posts: 5479
377
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

geethu th wrote:Its really a big code. Could you please give me any email id so that I can send the entire code and algorithm to you. Its really urgent...


Dude, I don't need that code. That's your task.

My suggestion is, find the person who knows the algorithm, ask him/her nicely to explain what it does, more better would be to get specification of it - and then based on your needs you can try to implement it in Java. Not sure why is that needed in the first place, but I'll leave that knowledge to you.

You can be almost certain, that no one is going sit down and do the task for you to convert some mystical algorithm from R to Java (if that's even possible).

We also have at least two useful tutorials to go through: [1] Ease Up, [2] Java Dudes Lament
 
Liutauras Vilda
Marshal
Posts: 5479
377
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe post a really small portion of it, so somebody could get a taste of the R code and see if that sounds doable to convert to Java at all.

R is a language mainly for statisticians, so the problems this language helps to solve are different. It may be well possible that it uses some special libraries in your mentioned algorithm which don't exist in Java - that means you couldn't just simply by literal take and convert R code to Java.

Might there is a reason why algorithm was written in R and not in Java. Basically I don't know what else to suggest to you - might somebody else will do.
 
I am mighty! And this is a mighty small ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!