认识Rstudio
画图上手
plot(runif(50,-1,1)) #均匀分布
plot(rnorm(50,0,1)) #正态分布
boxplot(iris$Sepal.Length~iris$Species,col = c("lightblue","lightyellow","lightpink"))
均匀分布.png
正态分布.png
箱线图.png
用Rproject管理工作目录
R的基础操作
dir():显示默认路径
getwd():显示当前工作目录
setwd():设置当前工作目录
list.files():显示当前目录下的文件
rm(a):删除变量a
rm(list = ls()):清空所有变量
history():列出历史命令
ctrl + l :清空控制台