Introduction to R language-installation and help for R

Source: Internet
Author: User

1. Acquisition and installation of R and Rstudio

-Acquisition and installation of R

A. https://cran.r-project.org/= R for Windows + base = Download R 3.3.2 for Windows

-Acquisition and installation of RStudio

A. Integrated development environment (IDE), user interface for R

B. https://www.rstudio.com/= Rstudio Download = Rstudio Desktop Open Source License = Installers:rstu Dio 1.0.136-windows VISTA/7/8/10

2. Packages (Package)

-Mechanisms for extending the basic functions of R/integration of many functions

-Get packages from Cran/bioconductor/github etc.

A. Install.packages ()

B. Install_github ()

-https://cran.r-project.org/= Left packages = Table of available packages

-Modify the Image:

RStudio = Tool = Global Options = Packages = CRAN Mirror = China (Beijing)

-Install caret Package: Install.packages ("caret")

-Import Caret Package: library (caret)

-Data (): Data sets in package ' caret '

- ? Insectsprays:insectsprays R Documentation

  

3. How to Get Help

-On the command line, enter:? function names such as:? LM get help documentation for linear regression related R

-Google/stackoverflow

-How to ask questions:

A. Operating system, r version, which step produces errors, what is expected, what results are obtained, other information

B. For example: Win7 R 3.2.0 lm () "SEG fault on large data frame"

Introduction to R language-installation and help for R

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.