R语言基础

下载安装R
(https://mirrors.tuna.tsinghua.edu.cn/CRAN/)
下载安装Rstudio
(https://www.rstudio.com/products/rstudio/download/)
Rstutio
脚本编辑器
控制台
变量/历史...
文件/图片/包/帮助...

创建Rproject
显示文件
dir()
list.files()
删除变量
rm()##()中为变量名
列出历史代码
history()
清空控制台
Ctrl+l
##注意是L的小写,不是1
一些图片代码
plot(rnorm(50))

iris$Sepal.Length~iris$Species,col = c("lightblue","lightyellow","lightpink"))

网友评论