This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 6015
415
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: 6015
415
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: 6015
415
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: 6015
415
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!