Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (7.3k points)
Can anyone tell me how to convert an R program into Python?

1 Answer

0 votes
by (41.4k points)

R has separate packages and libraries that give a different time complexity than Python. Thus, converting an R code into Python will make the code less efficient. However, R provides a reticulate package that helps execute Python programs using R script. Also, Python provides a library called PypeR that helps run R code using Python. But, interchanging the codes will not give an optimized code and will destroy its uniqueness. Therefore, it is recommended to learn Python and R both so that you can understand the mechanism of code irrespective of programming languages.

If you are looking for an online course to learn R programming, check out this R Programming Certification program by Intellipaat.

If you are interested to learn Python from Industry experts, you can sign up for this Python Certification Course by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 10, 2020 in R Programming by leealex956 (7.3k points)

Browse Categories

...