O'Reilly logo

Python Data Analysis by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing rpy2

The R programming language is popular among statisticians. It is written in C and Fortran and is available under the GNU General Public License. R has support for modeling, statistical tests, time-series analysis, classification, visualization, and clustering. The Comprehensive R Archive Network (CRAN) and other repository websites offer thousands of R packages for various tasks.

Note

Download R from http://www.r-project.org/.

The latest R version as of August 2014 was 3.1.1. The rpy2 package facilitates interfacing with R from Python. Install rpy2 as follows with pip:

$ pip install rpy2
$ pip freeze|grep rpy2
rpy2==2.4.2

Note

If you already have rpy2 installed, follow the instructions on http://rpy.sourceforge.net/rpy2/doc-dev/html/overview.html ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required