How to Call R from Python - an Rpy2 Tutorial

Pubblicato il: 18 agosto 2018
sul canale di: Erik Marsja
34,585
256

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):

   • Rpy2 Tutorial: R plots in Jupyter Notebooks  

» 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:
https://cran.r-project.org/web/packag...

» emmeans:
https://cran.r-project.org/web/packag...


In questa pagina del sito puoi guardare il video online How to Call R from Python - an Rpy2 Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Erik Marsja 18 agosto 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 34,585 volte e gli è piaciuto 256 spettatori. Buona visione!