官方网站:https://www.r-project.org/
官网下载:https://cran.r-project.org/
图形界面Rstudio: https://www.rstudio.com/
维基百科:https://en.wikipedia.org/wiki/R_(programming_language)
wikibook: https://en.wikibooks.org/wiki/R_Programming
R Journal:https://journal.r-project.org/
R Manuals:https://cran.r-project.org/manuals.html
R Packages: https://cran.r-project.org/web/packages/index.html
Rtools: https://cran.r-project.org/bin/windows/Rtools/
2024-06-15 发布 R 4.4.1
R国内翻译为R软件或R语言,是一个自由、免费、源代码开放(GNU)的软件,它是一个用于统计分析和统计制图的优秀工具。
R软件(免费的开源软件)的前身是S语言,S语言是美国贝尔实验室的Rick Becker,John Chambers和Allan Wilks于1976年开发的一种用来进行数据探索、统计分析、作图的解释型语言。新西兰奥克兰大学(Auckland University)大学的Robert Gentleman和Ross Ihaka及其他志愿人员于1993年开发了一套软件来实现S语言,由于这两位学者名字的首字母都是R,所以该软件被命名为R软件。
R软件1995年成为一个开源系统(GNU),1997年R核心开发小组(the R Development Core Team)成立,并维护R代码至今。CRAN(Comprehensive R Archive Network,R综合典藏网)提供R软件的下载版、源代码和说明文件,也收录了各种用户撰写的软件包,全球有超过一百个CRAN镜像站(中国大陆地区也有多个镜像可供选择,https://cran.r-project.org/)。截至2024年2月29日,R软件的最新版本是4.3.3,约78.8兆。
国内的镜像网站有:
https://mirrors.tuna.tsinghua.edu.cn/CRAN/ | TUNA Team, Tsinghua University | 清华大学 |
http://mirrors.tuna.tsinghua.edu.cn/CRAN/ | TUNA Team, Tsinghua University | |
https://mirrors.ustc.edu.cn/CRAN/ | University of Science and Technology of China | 中国科技大学 |
http://mirrors.ustc.edu.cn/CRAN/ | University of Science and Technology of China | |
https://mirrors.eliteu.cn/CRAN/ | Elite Education | 英荔教育 |
https://mirror.lzu.edu.cn/CRAN/ | Lanzhou University Open Source Society | 兰州大学 |
http://mirror.lzu.edu.cn/CRAN/ | Lanzhou University Open Source Society | |
https://mirrors.tongji.edu.cn/CRAN/ | Tongji University | 同济大学 |
- R的思想是:它可以提供一些集成的统计工具,它提供各种数学计算、统计计算的函数,从而使使用者(用户)能灵活地进行数据分析,甚至创造出符合需要的新的统计计算方法。
- 与其说R是一种统计软件,还不如说R是一种数学计算的环境。
- R已经形成了完整的体系,可以用于数据分析、数据提取和转换、模型拟合、描述推断、预测、绘图以及报告输出。
- R软件同时也是一种简便而强大的编程语言,可操纵数据的输入和输出,可实现分支、循环,用户可自定义功能。
R软件的最大特点不是免费,而是开放源代码,R软件其实是一个开放的平台。全球用户参与R软件的研发,涌现了大量基于R平台的拓展功能包,集思广益、更新迅速:例如用于绘图及数据可视化分析的ggplot2包;用于绘制地图的ggmap包,用于生存分析的survival包;用于结构方程分析的sem包等。全世界各个学科领域的教授、研究生、工程师、程序员既是R软件的用户,同时也是开发者,这些软件包贡献者了解各个学科领域的特定需求,努力实践最新的研究成果,敏锐捕捉着未来的发展趋势,其专业程度和蓬勃活力是传统的商业软件难以企及的。
所以如果是windows 32位系统,只能安装R 4.1.3或更低的版本
R 4.1.3 windows版官网网址
https://cran.r-project.org/bin/windows/base/old/4.1.3/R-4.1.3-win.exe
R 4.1.3 windows版官网网址(兰州大学镜像)
https://mirror.lzu.edu.cn/CRAN/bin/windows/base/old/4.1.3/R-4.1.3-win.exe
R 4.1.3 windows版官网网址(中国科技大学镜像)
https://mirrors.ustc.edu.cn/CRAN/bin/windows/base/old/4.1.3/R-4.1.3-win.exe
R IDE
Rstudio
https://rstudio.com/products/rstudio/
Jupyter Notebook
https://www.practicaldatascience.org/html/jupyter_r_notebooks.html
install.packages("IRkernel")
IRkernel::installspec()
nteract
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()
Rcode
http://www.pgm-solutions.com/rcode/download
Tinn-R
在线运行R的平台
https://www.tutorialspoint.com/execute_r_online.php
R软件的简要历史
Robert Gentleman
Ross Ihaka
R is an implementation of the S programming language combined with lexical scoping semantics, inspired by Scheme.[1] S was created by John Chambers in 1976 while at Bell Labs. A commercial version of S was offered as S-PLUS starting in 1988.
Much of the code written for S-PLUS runs unaltered in R.[10]
In 1991 Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, began an alternative implementation of the basic S language, completely independent of S-PLUS, which they began publicizing in 1993.[11] It was named partly after the first names of the first two R authors and partly as a play on the name of S.[12] In 1995, Martin Maechler convinced Ihaka and Gentleman to make R free and open-source software under Version 2 of the GNU General Public License.[13][14] The R Core Team was formed in 1997 to further develop the language.[12] As of 2021, it consisted of Gentleman, Ihaka, and Maechler, plus Douglas Bates, John Chambers, Peter Dalgaard, Kurt Hornik, Tomas Kalibera, Michael Lawrence, Friedrich Leisch, Uwe Ligges, Thomas Lumley, Martin Morgan, Paul Murrell, Martyn Plummer, Brian Ripley, Deepayan Sarkar, Duncan Temple Lang, Luke Tierney, and Simon Urbanek. Heiner Schwarte, Guido Masarotto, Stefano Iacus, Seth Falcon, and Duncan Murdoch were also formerly members.[15]
The first official release came in 1995.[11] The Comprehensive R Archive Network (CRAN) was officially announced 23 April 1997 with 3 mirrors and 12 contributed packages.[16] The first official "stable beta" version (v1.0) was released 29 February 2000.[17][18]
R软件在线学习资源
R软件相关的网站
R软件显示英文界面
截至2024年5月19日R软件累计有20719个功能包(https://cran.r-project.org/web/packages/index.html)和(https://www.r-pkg.org/),大约以每个月120个的速度递增。
https://www.tiobe.com/tiobe-index/r/
官方统计了R package的下载量
Downloads (https://cranlogs.r-pkg.org/badges/mltools)
Downloads in last day (https://cranlogs.r-pkg.org/badges/last-day/mltools)
Grand total (https://cranlogs.r-pkg.org/badges/grand-total/mltools)
David Robinson做的的这个可视化工具,可以查询每个package的下载量
https://ipub.com/dev-corner/apps/r-package-downloads/
https://www.analyticsvidhya.com/wp-content/uploads/2016/07/DataAnalysis_R.pdf
列出了常用的数据分析packages
Microsoft R Application Network: https://mran.microsoft.com/
Quick-R
R bloggers
Data Science Made simple
http://www.datasciencemadesimple.com/learn-r-what-is-r/
Data Camp
Try R
Database using R
R for excel
https://www.rforexcelusers.com/
- Handling Strings with R. This book aims to help you get started with manipulating strings with R (new bookdown version, work in progress).
- Handling and Processing Strings in R (old pdf version).
- Pack YouR Code. This book aims to help you get started with the creation of an R package (work in progress).
- A Matrix Algebra Companion for Statistical Learning. The purpose of this book is to help you understand how statistical notions are connected to matrix algebra concepts that constantly appear around Statistical Learning methods (work in progress).
- PLS Path Modeling with R. This book provides a hands-on introduction to Partial Least Squares Path Modeling (PLS-PM) using the R package "plspm".
- The Saga of PLS. This text narrates the story behind the origins, development, and evolution of Partial Least Squares (PLS) methods.