How to Call R from Python - an Rpy2 Tutorial
In this rpy2 tutorial we will be calling R from Python. We will go through a couple of rpy2 examples in which we are running r from Python to do data analysis. Rpy2 is a Python module that makes it very easy to call r from Python. If you are using anaconda Python distribution you can easily install r and rpy2 using conda (see example in video). You will also learn how to fix LibraryError where you get a conflict when converting R symbols to Python symbols. It may be due to duplicate function/method names when translating R code to Python... Make sure you subscribe to the channel if you haven't: http://bit.ly/SUB2EM » Learn how to display R plots in Jupyter Notebooks (rpy2): https://youtu.be/RK-n78ZOXUg » All code can be found in this rpy2 tutorial: http://bit.ly/rpy2how-to as well as in this Jupyter Notebook: http://bit.ly/Rpy2Example » Rpy2 documentation: https://rpy2.readthedocs.io/ The packages installed and used in the examples: » afex: