#1.1初始步骤
install.packages("ISwR")#安装包
library(ISwR)#借阅包
plot(rnorm(1000))
#1.1.1 大型计算器
2+2
## [1] 4
exp(-2)
## [1] 0.1353353
rnorm(15)
## [1] -0.09971231 0.76745740 -0.88572455 -1.23293365 0.92343985
## [6] 0.57028888 0.56232673 -1.64383654 -1.24220628 0.10673117
## [11] 0.38478635 0.18986908 0.45876877 0.42285381 -0.83338142
#1.1.2 赋值
x<-2
x
## [1] 2
x+x
## [1] 4
#1.1.3 向量运算