大家好,我是William李梓峰,欢迎阅读我的 R 语言学习日记。
我不太喜欢看书,学习新东西一般会看官网或者靠谱的英文教程,考虑到上手速度问题,我选择直接看 TutorialPoints 的教程。
按照惯例,先给出教程链接:
下面是该教程的个人手工翻译,略微删减部分不重要的内容。
R 语言到底是个什么鬼
R is a programming language and software environment for statistical analysis, graphics representation and reporting. R was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, and is currently developed by the R Development Core Team.
R 语言是一门编程语言,它能够处理数理统计建模分析,数据可视化和数据报表。R 语言由新西兰的奥克兰大学的两名老师 Ross Ihaka 和 Robert Gentleman 所创建,现在由 R 语言核心开发小组负责维护更新。
R is freely available under the GNU General Public License, and pre-compiled binary versions are provided for various operating systems like Linux, Windows and Mac.
R 语言是完全开源免费的,使用 GNU 通用公共开源协议,提供了预编译的二进制版本,用于 Linux,Windows 以及 Mac。
This programming language was named R, based on the first letter of first name of the two R authors (Robert Gentleman and Ross Ihaka), and partly a play on the name of the Bell Labs Language S.
这门编程语言以 R 为命名,基于两个作者姓名的首字母 R (Robert Gentleman 和 Ross Ihaka),就像贝尔实验室的一门编程语言 S。
怎么阅读本教程
This tutorial is designed for software programmers, statisticians and data miners who are looking forward for developing statistical software using R programming. If you are trying to understand the R programming language as a beginner, this tutorial will give you enough understanding on almost all the concepts of the language from where you can take yourself to higher levels of expertise.
本教程是为那些想使用 R 语言来开发统计相关软件的开发者,统计分析师和数据挖掘者而精心设计的。如果你想作为一名初学者来学习 R 语言,那么本教程会让你能够理解关于 R 语言的大部分必要知识,让你通过自学来提高自身水平。
需要注意的点
Before proceeding with this tutorial, you should have a basic understanding of Computer Programming terminologies. A basic understanding of any of the programming languages will help you in understanding the R programming concepts and move fast on the learning track.
在学习这门语言之前,你需要先了解基本的计算机编程概念(其实没什么大不了的)。因为如果你有编程的底子,学习 R 语言就很快了(其实也没多快)。
下面来段 Hello World
打印 Hello World.
print("Hello World")
两数相加
print(23.9 + 11.6)