Use python to call R for data analysis-preparation

Source: Internet
Author: User

Use python to call R for data analysis-preparation

Introduction to 0. R

R is a free software without any guarantee. Under certain conditions, you can freely spread it and use 'license () 'or 'license ()' to see the detailed conditions of distribution.

R is a cooperation plan, and many people have contributed to it. Use 'contributors () 'to view the details of the collaborators. Use 'citation () 'will show you how to correctly reference the R or R package in the publication, use 'demo ()' to view some demonstration programs, and use 'help () 'to read online help files, or use 'help. start () 'use the HTML browser to view the Help file.

Exit R with 'q.

Demo (graphics)

You can view which types of charts can be drawn by R and display various characters.

Demo (Hershey)

Exit
Q ()


1. Install R

Update source to fedoraproject

Sudo rpm-Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Install R

Sudo yum install R

2. Install rpy2

Pip install rpy2

2. Usage

R usage

R dancing with python


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.