0 votes
1 view
in R Programming by (6.5k points)
Can anyone tell me how to convert an R program into Python?

1 Answer

0 votes
by (38.2k 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.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...