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