from one language to another : I currently have a program in R, but I need to convert it in Python

100 views Asked by At

I am already familiar with the possibility to "call" some R functions from python, but what I'm looking for is a way to convert R code to Python code.

I doubt that there's an automatic way to do it '^^ (I know that it's possible to convert java code into Kotlin code automatically, but it's not perfect '^^ and I doubt that there is a way for R to Python) But if you know one I'm all ears!

What I want is to know if there is a "strategy" or a good way to go about it and convert a code from one language to another. Like, is it better to spend two weeks reading the code entirely until I know it by heart, or is it better to just start and copy/convert/paste line by line?

I do have some experience doing this type of project, as I recoded a Python code into Kotlin code, but it took way more time than I had.

this project is on the span of an internship of 2 months, so my time is rather limited, and the program I'm working on is on the subject of hydrology, which I don't know a thing about !


TL;DR

I want to know if you have a method to convert code from one language to another (here R to Python) or at least, if you have a way to estimate the time it might take me.

0

There are 0 answers