当前位置:网站首页>R language installation tutorial | graphic introduction is super detailed
R language installation tutorial | graphic introduction is super detailed
2022-07-25 23:34:00 【jamesbang】
R Language installation tutorial | Graphic introduction super detailed
1 R Introduction to language
1.1 R The history of language
R Language comes from S Language , yes S A variation of language .S Language by Rick Becker, John Chambers Et al. Developed in Bell Laboratories , The famous C Language 、Unix The system is also developed by Bell Laboratories .R It's a free software ,GPL to grant authorization , Originally from New Zealand Auckland University's Ross Ihaka and Robert Gentleman On 1997 Released in , R Realized and S Language has basically the same functions and statistical functions . Now by R Core team development , But users all over the world can contribute packages .
1.2 R Characteristics of language
The free software , free 、 Open source , Support the main popular systems
Is this feature not enough !!!!( What kind of bike do you want ( ̄△ ̄;))
1.3 Recommended books
I haven't read any 、 (  ̄ー ̄)
Hadley Wickham and Garrett Grolemund(2017) “R for Data Science” https://r4ds.had.co.nz/Hadley Wickham(2019) “Advanced R,” 2nd ed. https://adv-r.hadley.nz/Hadley Wickham(2016) ggplot2 Elegant Graphics for Data Analysis, 2nd ed. https://ggplot2-book.org/
3 Download and install R
This time with mac os(m1) For example , open
https://www.r-project.org/
3.1 Choose a new version R

3.2 Select Tsinghua image

3.3 Select different versions according to different operating systems R, Here I choose mac os

3.4 because mac There are different chip problems ,m1 and intel, You can choose different versions according to the chip .

Note! Let me remind you , If you need to use it often Bioconductor If the bag on the is analyzed , Even if you are M1 Users of , I also recommend you choose intel Version of R
3.5 Finally, all the way to the end , Just finish the installation ~

4 Download and install RStudio
installed R Language can be installed RStudio 了 ,Rstudio yes R One of the IDE, Powerful graphics , Can be used more conveniently R, R It's like the body of a camera ,Rstudio Just like the lens of a camera , You can buy expensive and cheap lenses , But they all need to be used on the camera body .
4.1 open Rstudio Official website
https://www.rstudio.com/products/rstudio/,

4.2 download Rstudio Desktop, Certainly free Edition

4.3 Select the corresponding version corresponding to your own operating system , So here I'm going to choose mac edition

4.4 After downloading , Go all the way to the end

5 R studio Interface is introduced

A: Scripting area . Written in this area R Code can be deleted 、 modify . Click on “run”, Run a single command , Click on “source”, Run all the edited commands . Common shortcut key : command+return( Interested in knowing all shortcut keys can be usedoption+shift+ksee )B: Data display area . Displayed in the R The historical data entered inside . C: Command run area . The results and errors of the code will be displayed in this area . D: Drawing and help area .
6 Foundation setup
Don't rush to write code yet , First, make some basic settings
6.1 Click on Tools -> Global Options
(Mac Shortcut key command + , )

6.2 working directory
adopt Browse Choose the default working path , But I still recommend you to pass setwd() Or new project To set the working directory

6.3 Set the theme
adopt font size and theme Just set the font size and theme you like , Turnip vegetables , His taste (O_o)(o_O)

6.4 Set up the mirror
adopt change Choose the image address closest to you


Click to see , The official account replied
rstudioAccess to all Rstudio Shortcut key pdf edition

边栏推荐
- Wrote a little webapi knowledge points from 0 to 1
- Same origin strategy and cross domain
- 【MUDUO】EventLoopThreadPool
- 利用用户脚本优化 Yandere/Konachan 站点浏览体验
- [nodejs] nodejs create a simple server
- Serialize operator
- 意向不到的Dubug妙招
- 762. 二进制表示中质数个计算置位
- Which securities firm is the best and safest for beginners to open an account
- 谷粒学苑P98踩坑 e.GlobalExceptionHandler : null
猜你喜欢

POI special effects Market Research

Multimodal deep multi modal sets

npm+模块加载机制

Learning exploration-3d rotation card

Dynamic memory management

E-commerce RPA, a magic weapon to promote easy entry

Swap, move, forward, exchange of utility component learning

赋值时'1和'b1有什么区别

S4/HANA ME21N创建PO 输出控制消息按钮丢失解决方法(切换EDI 输出模式BRF+至NAST模式)

Discuz magazine / news report template (jeavi_line) utf8 GBK / DZ template download
随机推荐
Summary of built-in instructions and custom instructions
XXE&XML-外部实体注入-利用和绕过
Recommended system - an embedded learning framework for numerical features in CTR prediction
1913. 两个数对之间的最大乘积差-无需排序法
【MUDUO】EventLoop事件循环
TS interface
WordPress removes the website publishing time
762. 二进制表示中质数个计算置位
[QNX Hypervisor 2.2用户手册]9.7 generate
[QNX Hypervisor 2.2用户手册]9.6 gdb
E-commerce RPA, a magic weapon to promote easy entry
[nodejs] nodejs create a simple server
BI 系统中为什么会有很多快照表?
[QNX hypervisor 2.2 user manual]9.8 load
[test technology performance test LoadRunner] detailed explanation of common functions of LoadRunner
[QNX Hypervisor 2.2用户手册]9.8 load
ES6 syntax (difference between let, const, VaR, deconstruction assignment, arrow function, residual parameters, extension method of array)
Cuteone: a onedrive multi network disk mounting program / with member / synchronization and other functions
[Muduo] package EventLoop and thread
学习探索-波浪