Indian Forum for Water Adroit

How to run Python in R

Pankaj Dey

  • *****
  • Thanked: 111 times
  • +112/-0
    • View Profile
  • Institute : Indian Institute of Science
  • Programming language : MATLAB, R
How to run Python in R
« on: March 11, 2019, 08:26:08 PM »
As much as I love R, it’s clear that Python is also a great language—both for data science and general-purpose computing. And there can be good reasons an R user would want to do some things in Python. Maybe it’s a great library that doesn’t have an R equivalent (yet). Or an API you want to access that has sample code in Python but not R.
Thanks to the R reticulate package, you can run Python code right within an R script—and pass data back and forth between Python and R.
Link: https://www.infoworld.com/article/3340120/how-to-run-python-in-r.html
Pankaj