What is R or Rstudio?
- programming language
- environment that is used for computing,statistics and drawing
Preparations
set the size of words:
mac: 'command -' is lessen,and of course 'command ' is becoming larger
Basic managements
- one Rproject only interacts with on directory, so be care with what may annoys u in the future
- display dir/files lists
dir()
代码语言:R复制list.files()
- -*/
- assignments
a<- 111
- deletion
rm(a)
rm(b,c)
rm(list = ls())
- history
history()
click a sentence twice, it will appear behind of '>'
- drawing plots and boxplots
plot(runif(50))
代码语言:R复制boxplot(iris$Sepal.Length~iris$Species,col = c("lightblue","lightyellow","lightpink"))